1
0
Pārlūkot izejas kodu

glibc: make static usage better

Waldemar Brodkorb 7 gadi atpakaļ
vecāks
revīzija
2d85d3803c
1 mainītis faili ar 5 papildinājumiem un 1 dzēšanām
  1. 5 1
      toolchain/glibc/Makefile

+ 5 - 1
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} \
 	);