summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-20 10:13:00 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-20 10:13:24 +0200
commit87c0185bf492767c4439f66f65398eb0ed3bda34 (patch)
tree3c3255e6fab49050a3314ea797463d56190d57be /mk
parentdfd37d10510d013fc7c49ecb42d1b75c14be4594 (diff)
fix some packages, when static build is choosen
Diffstat (limited to 'mk')
-rw-r--r--mk/pkg-bottom.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/pkg-bottom.mk b/mk/pkg-bottom.mk
index c711bce13..b3b905513 100644
--- a/mk/pkg-bottom.mk
+++ b/mk/pkg-bottom.mk
@@ -13,6 +13,12 @@
PKG_LIBNAME?= $(PKG_NAME)
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS),y)
+CONFIGURE_LIB:=--enable-static --disable-shared
+else
+CONFIGURE_LIB:=--enable-static --enable-shared
+endif
+
pre-configure:
do-configure:
post-configure:
@@ -78,11 +84,10 @@ else ifeq ($(strip ${CONFIG_STYLE}),)
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sysconfdir=/etc \
- --enable-shared \
- --enable-static \
--disable-dependency-tracking \
--disable-libtool-lock \
--disable-nls \
+ ${CONFIGURE_LIB} \
${CONFIGURE_ARGS} $(MAKE_TRACE)
else
@echo "Invalid CONFIG_STYLE '${CONFIG_STYLE}'" >&2