uclibc: explicitly set HAVE_SHARED depending on BR2_PREFER_STATIC_LIB
authorAlexey Brodkin <alexey.brodkin@gmail.com>
Sun, 12 Oct 2014 16:34:45 +0000 (18:34 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 12 Oct 2014 22:24:08 +0000 (00:24 +0200)
Now with change of BR2_PREFER_STATIC_LIB meaning to "do not build dynamic libs
and build statically linked applications" it's possible to disable support of
shared libs in uClibc as well as builting of shared libc libs.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Gustavo Zacarias <gustavo@zacarias.com.ar>
Cc: Peter Korsgaard <peter@korsgaard.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/uclibc/uClibc-0.9.31.config
package/uclibc/uClibc-0.9.33.config
package/uclibc/uClibc-snapshot.config
package/uclibc/uclibc.mk

index b23ba731ae5086a68b43d1d34949bc9e177c4a70..76772e850a8f4d66b4e0e7e8d2f776130dc3806c 100644 (file)
@@ -61,7 +61,6 @@ HAVE_DOT_CONFIG=y
 DOPIC=y
 # ARCH_HAS_NO_SHARED is not set
 # ARCH_HAS_NO_LDSO is not set
-HAVE_SHARED=y
 # FORCE_SHAREABLE_TEXT_SEGMENTS is not set
 LDSO_LDD_SUPPORT=y
 # LDSO_CACHE_SUPPORT is not set
index 0fbce19b969f92a4e5c1013e19681c3aac9547a4..1b07d4a0a9ab5d00b5b7eef6153e1633a0d95eb2 100644 (file)
@@ -83,7 +83,6 @@ HAVE_DOT_CONFIG=y
 DOPIC=y
 # ARCH_HAS_NO_SHARED is not set
 # ARCH_HAS_NO_LDSO is not set
-HAVE_SHARED=y
 # FORCE_SHAREABLE_TEXT_SEGMENTS is not set
 LDSO_LDD_SUPPORT=y
 # LDSO_CACHE_SUPPORT is not set
index dea767e4ae7fa2b4a6a3fbbfef3be006dc5f2269..ffc15358a4c99c5c3dcd69c7e339408747cd068e 100644 (file)
@@ -85,7 +85,6 @@ HAVE_DOT_CONFIG=y
 DOPIC=y
 # ARCH_HAS_NO_SHARED is not set
 # ARCH_HAS_NO_LDSO is not set
-HAVE_SHARED=y
 # FORCE_SHAREABLE_TEXT_SEGMENTS is not set
 LDSO_LDD_SUPPORT=y
 # LDSO_CACHE_SUPPORT is not set
index d66da17dd5542397a6bd959cee065f93e171c491..b2ecce397b140e7cc10bbbcf5b8d5994a14e7719 100644 (file)
@@ -381,6 +381,16 @@ else
 UCLIBC_WCHAR_CONFIG = $(call KCONFIG_DISABLE_OPT,UCLIBC_HAS_WCHAR,$(@D)/.config)
 endif
 
+#
+# static/shared libs
+#
+
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+UCLIBC_SHARED_LIBS_CONFIG = $(call KCONFIG_DISABLE_OPT,HAVE_SHARED,$(@D)/.config)
+else
+UCLIBC_SHARED_LIBS_CONFIG = $(call KCONFIG_ENABLE_OPT,HAVE_SHARED,$(@D)/.config)
+endif
+
 #
 # Commands
 #
@@ -420,6 +430,7 @@ define UCLIBC_KCONFIG_FIXUP_CMDS
        $(UCLIBC_THREAD_DEBUG_CONFIG)
        $(UCLIBC_LOCALE_CONFIG)
        $(UCLIBC_WCHAR_CONFIG)
+       $(UCLIBC_SHARED_LIBS_CONFIG)
 endef
 
 ifeq ($(BR2_UCLIBC_INSTALL_TEST_SUITE),y)