[Buildroot] [PATCH] package/xerces: force gcc at least 4.9

Bartosz Bilas b.bilas at grinn-global.com
Fri Apr 3 19:53:05 UTC 2020


Xerces uses char16_t which was introduced in c++11.

Signed-off-by: Bartosz Bilas <b.bilas at grinn-global.com>
---
 package/xerces/Config.in | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/xerces/Config.in b/package/xerces/Config.in
index 2edc4346b5..06b33674dc 100644
--- a/package/xerces/Config.in
+++ b/package/xerces/Config.in
@@ -1,10 +1,14 @@
 config BR2_PACKAGE_XERCES
 	bool "xerces-c++"
 	depends on BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # c++11
+	depends on BR2_HOST_GCC_AT_LEAST_4_9 # c++11
 	help
 	  Xerces-C++ is a validating XML parser written in portable C++.
 
 	  http://xerces.apache.org/xerces-c/
 
-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++, wchar, gcc >= 4.9, host gcc >= 4.9"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_USE_WCHAR && \
+			BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 && \
+			BR2_HOST_GCC_AT_LEAST_4_9 )
-- 
2.26.0



More information about the buildroot mailing list