From 035ac813b4f7eaa52eea193c9716c939fbc937ef Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 15 Nov 2008 16:10:29 +0000 Subject: - if ssp is enabled then make sure that __stack_chk_fail resolves --- libresolv/Makefile.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libresolv') 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) -- cgit v1.2.3