aboutsummaryrefslogtreecommitdiff
path: root/package/xmlstarlet
diff options
context:
space:
mode:
authorGravatar Romain Naour <romain.naour@openwide.fr>2014-08-18 23:35:42 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-08-21 15:25:50 +0200
commitb840bc6345d417c628fabf2761e9c2988f10526d (patch)
tree1af17ec2c377614914c23c895c9c52b363b21f9e /package/xmlstarlet
parent54007178336031fabe0033b5eb8303a8fe3b42bb (diff)
downloadbuildroot-b840bc6345d417c628fabf2761e9c2988f10526d.tar.gz
buildroot-b840bc6345d417c628fabf2761e9c2988f10526d.tar.bz2
package/xmlstarlet: fix static linking
The static linking with libxml2 and lib(e)xslt (--enable-static-libs) need to be enabled when BR2_PREFER_STATIC_LIB is set. Fixes: http://autobuild.buildroot.net/results/0fd/0fd4a65ab98a4cf3fe893c29628608a71e96ecbc/build-end.log Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/xmlstarlet')
-rw-r--r--package/xmlstarlet/xmlstarlet.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/xmlstarlet/xmlstarlet.mk b/package/xmlstarlet/xmlstarlet.mk
index 16f736ee88..7a8451fcd9 100644
--- a/package/xmlstarlet/xmlstarlet.mk
+++ b/package/xmlstarlet/xmlstarlet.mk
@@ -12,9 +12,15 @@ XMLSTARLET_LICENSE_FILES = COPYING
XMLSTARLET_DEPENDENCIES += libxml2 libxslt \
$(if $(BR2_PACKAGE_LIBICONV),libiconv)
-XMLSTARLET_CONF_OPT += --disable-static-libs \
+XMLSTARLET_CONF_OPT += \
--with-libxml-prefix=${STAGING_DIR}/usr \
--with-libxslt-prefix=${STAGING_DIR}/usr \
--with-libiconv-prefix=${STAGING_DIR}/usr
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+XMLSTARLET_CONF_OPT += --enable-static-libs
+else
+XMLSTARLET_CONF_OPT += --disable-static-libs
+endif
+
$(eval $(autotools-package))