* [Buildroot] [PATCH 1/1] package/xerces: needs dynamic library
@ 2021-07-31 20:44 Fabrice Fontaine
2021-07-31 22:07 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2021-07-31 20:44 UTC (permalink / raw)
To: buildroot; +Cc: Matt Weber, Fabrice Fontaine
Disable xerces on toolchains without dynamic library to avoid a static
build failure raised since the addition of xml-security-c in commit
bbda38afbbfa79ff436e1a187bb267b8d9558036 because xerces-c.pc does not
contain icu or iconv dependencies in Libs.Private
Fixes:
- http://autobuild.buildroot.org/results/3e4f31eb017878d3417742cbc83e16bc848db98e
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/xerces/Config.in | 6 ++++--
package/xml-security-c/Config.in | 5 +++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/package/xerces/Config.in b/package/xerces/Config.in
index 828b5dd2a0..20cd2ab1a6 100644
--- a/package/xerces/Config.in
+++ b/package/xerces/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_XERCES
bool "xerces-c++"
depends on BR2_INSTALL_LIBSTDCPP
+ depends on !BR2_STATIC_LIBS
depends on BR2_USE_WCHAR
help
Xerces-C++ is a validating XML parser written in portable C++.
@@ -17,5 +18,6 @@ config BR2_PACKAGE_XERCES_ENABLE_NETWORK
endif
-comment "xerces-c++ needs a toolchain w/ C++, wchar"
- depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR)
+comment "xerces-c++ needs a toolchain w/ C++, dynamic library, wchar"
+ depends on !BR2_INSTALL_LIBSTDCPP || BR2_STATIC_LIBS || \
+ !BR2_USE_WCHAR
diff --git a/package/xml-security-c/Config.in b/package/xml-security-c/Config.in
index 17d0ca3aad..02544d5a01 100644
--- a/package/xml-security-c/Config.in
+++ b/package/xml-security-c/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_XML_SECURITY_C
bool "xml-security-c"
depends on BR2_INSTALL_LIBSTDCPP # xerces
+ depends on !BR2_STATIC_LIBS # xerces
depends on BR2_USE_WCHAR # xerces
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7 # C++11
select BR2_PACKAGE_LIBOPENSSL_ENABLE_DES if BR2_PACKAGE_LIBOPENSSL
@@ -12,6 +13,6 @@ config BR2_PACKAGE_XML_SECURITY_C
https://santuario.apache.org/cindex.html
-comment "xml-security-c needs a toolchain w/ C++, wchar, gcc >= 4.7"
+comment "xml-security-c needs a toolchain w/ C++, wchar, dynamic library, gcc >= 4.7"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
- !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
+ BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
--
2.30.2
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-07-31 22:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-31 20:44 [Buildroot] [PATCH 1/1] package/xerces: needs dynamic library Fabrice Fontaine
2021-07-31 22:07 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox