From db5c5752566147689063340a87531ca4ac626a98 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 22 Jan 2009 09:47:09 +0000 Subject: - also link librt with --as-needed and do so unconditionally to work around bugs in gentoo's QA. Just add UCLIBC_HAS_SSP to the "and" of link.asneeded to properly take SSP into account, if you prefer. --- libnsl/Makefile.in | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libnsl') diff --git a/libnsl/Makefile.in b/libnsl/Makefile.in index 0995b3c4f..03a7703f2 100644 --- a/libnsl/Makefile.in +++ b/libnsl/Makefile.in @@ -7,12 +7,7 @@ CFLAGS-libnsl := -DNOT_IN_libc -DIS_IN_libnsl $(SSP_ALL_CFLAGS) -LDFLAGS-libnsl.so := $(LDFLAGS) -ifdef ASNEEDED -ifeq ($(UCLIBC_HAS_SSP),y) -LDFLAGS-libnsl.so += -Wl,--no-as-needed -lc -Wl,--as-needed -endif -endif +LDFLAGS-libnsl.so := $(LDFLAGS) $(call link.asneeded,-lc) LIBS-libnsl.so := $(LIBS) -- cgit v1.2.3