summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/Makefile.autotools.in2
-rw-r--r--package/Makefile.in6
2 files changed, 8 insertions, 0 deletions
diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index 917600ca0..46ab861c1 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -104,6 +104,7 @@ define $(2)_CONFIGURE_CMDS
$$(DISABLE_NLS) \
$$(DISABLE_LARGEFILE) \
$$(DISABLE_IPV6) \
+ $$(SHARED_STATIC_LIBS_OPTS) \
$$(QUIET) $$($$(PKG)_CONF_OPT) \
)
endef
@@ -119,6 +120,7 @@ define $(2)_CONFIGURE_CMDS
./configure \
--prefix="$$(HOST_DIR)/usr" \
--sysconfdir="$$(HOST_DIR)/etc" \
+ --enable-shared --disable-static \
$$($$(PKG)_CONF_OPT) \
)
endef
diff --git a/package/Makefile.in b/package/Makefile.in
index 31a963920..8e9637ce8 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -276,6 +276,12 @@ else
ENABLE_DEBUG:=
endif
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+SHARED_STATIC_LIBS_OPTS=--enable-static --disable-shared
+else
+SHARED_STATIC_LIBS_OPTS=--enable-static --enable-shared
+endif
+
include package/Makefile.autotools.in
include package/Makefile.cmake.in
include package/Makefile.package.in