[Buildroot] [git commit] xerces: enable threads if available
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Tue Oct 9 13:06:30 UTC 2018
commit: https://git.buildroot.net/buildroot/commit/?id=3cbafdd388f1d62844381ecdb97d52343f203323
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Reviewed-by: Matt Weber <matthew.weber at rockwellcollins.com>
Reviewed-by: Matt Weber <<a href="mailto:matthew.weber at rockwellcollins.com" target="_blank">matthew.weber at rockwellcollins.com</a>><br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
package/xerces/xerces.mk | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/package/xerces/xerces.mk b/package/xerces/xerces.mk
index a25641fb45..da088d8e1c 100644
--- a/package/xerces/xerces.mk
+++ b/package/xerces/xerces.mk
@@ -10,9 +10,7 @@ XERCES_SITE = http://archive.apache.org/dist/xerces/c/3/sources
XERCES_LICENSE = Apache-2.0
XERCES_LICENSE_FILES = LICENSE
XERCES_INSTALL_STAGING = YES
-XERCES_CONF_OPTS = \
- --disable-threads \
- --with-gnu-ld
+XERCES_CONF_OPTS = --with-gnu-ld
define XERCES_DISABLE_SAMPLES
$(SED) 's/ samples//' $(@D)/Makefile.in
@@ -39,4 +37,10 @@ else
XERCES_CONF_OPTS += --disable-network
endif
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+XERCES_CONF_OPTS += --enable-threads
+else
+XERCES_CONF_OPTS += --disable-threads
+endif
+
$(eval $(autotools-package))
More information about the buildroot
mailing list