summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernd Kuhls <bernd.kuhls@t-online.de>2016-02-21 00:40:25 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-02-21 12:24:50 +0100
commitabde10199abc7160c083965961fdd82d9b0bd1a2 (patch)
tree14b7a8804bbaa7ccfafca70007dba1adb6c237b6
parent91889c19bea220907620c1c40a1869933153a1d0 (diff)
downloadbuildroot-abde10199abc7160c083965961fdd82d9b0bd1a2.tar.gz
buildroot-abde10199abc7160c083965961fdd82d9b0bd1a2.zip
package/xerces: add optional support for icu
When icu was compiled before, xerces will use it as optional dependency: $ output/host/usr/bin/x86_64-linux-readelf -a output/target/usr/lib/libxerces-c-3.1.so | grep NEEDED | sort 0x0000000000000001 (NEEDED) Shared library: [libc.so.1] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libicudata.so.56] 0x0000000000000001 (NEEDED) Shared library: [libicui18n.so.56] 0x0000000000000001 (NEEDED) Shared library: [libicuuc.so.56] 0x0000000000000001 (NEEDED) Shared library: [libm.so.1] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/xerces/xerces.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/xerces/xerces.mk b/package/xerces/xerces.mk
index cf3618378a..e57949a1ad 100644
--- a/package/xerces/xerces.mk
+++ b/package/xerces/xerces.mk
@@ -21,6 +21,13 @@ endef
XERCES_POST_PATCH_HOOKS += XERCES_DISABLE_SAMPLES
+ifeq ($(BR2_PACKAGE_ICU),y)
+XERCES_CONF_OPTS += --with-icu=$(STAGING_DIR)/usr
+XERCES_DEPENDENCIES += icu
+else
+XERCES_CONF_OPTS += --without-icu
+endif
+
ifeq ($(BR2_PACKAGE_LIBICONV),y)
XERCES_CONF_ENV += LIBS=-liconv
XERCES_DEPENDENCIES += libiconv
OpenPOWER on IntegriCloud