summaryrefslogtreecommitdiff
path: root/libresolv
diff options
context:
space:
mode:
Diffstat (limited to 'libresolv')
-rw-r--r--libresolv/Makefile.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/libresolv/Makefile.in b/libresolv/Makefile.in
index f006fe149..4b4d781c1 100644
--- a/libresolv/Makefile.in
+++ b/libresolv/Makefile.in
@@ -8,6 +8,11 @@
CFLAGS-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS)
LDFLAGS-libresolv.so := $(LDFLAGS)
+ifdef ASNEEDED
+ifeq ($(UCLIBC_HAS_SSP),y)
+LDFLAGS-libresolv.so += -Wl,--no-as-needed -lc -Wl,--as-needed
+endif
+endif
LIBS-libresolv.so := $(LIBS)