summaryrefslogtreecommitdiff
path: root/libnsl/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'libnsl/Makefile.in')
-rw-r--r--libnsl/Makefile.in7
1 files changed, 1 insertions, 6 deletions
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)