summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-06-20 23:26:39 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-06-20 23:27:01 +0200
commit2d85d3803c04189e3c419ff3fea58cb2997f0d22 (patch)
tree863b4523d0ada8bd9d910ec013503d4b2459f7b6 /toolchain
parenta5b4cab910b75253d54a4b0bb07324fcf16dbaa8 (diff)
glibc: make static usage better
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/glibc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/toolchain/glibc/Makefile b/toolchain/glibc/Makefile
index bbc09b924..358263dc1 100644
--- a/toolchain/glibc/Makefile
+++ b/toolchain/glibc/Makefile
@@ -24,9 +24,14 @@ GLIBC_CONFOPTS:= --build=$(GNU_HOST_NAME) \
--disable-nscd \
--with-__thread \
--with-tls \
+ --enable-shared \
--enable-kernel="2.6.32" \
--enable-add-ons
+ifeq ($(ADK_TARGET_USE_STATIC_LIBS_ONLY),y)
+GLIBC_CONFOPTS+= --enable-static-nss
+endif
+
ifeq ($(ADK_TARGET_FLOAT),soft)
GLIBC_CONFOPTS+= --without-fp
endif
@@ -61,7 +66,6 @@ $(WRKBUILD)/.configured:
${GLIBC_ENV} \
$(WRKBUILD)/configure \
--prefix=/usr \
- --enable-shared \
--enable-stackguard-randomization \
${GLIBC_CONFOPTS} \
);