diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-11-15 16:10:29 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2008-11-15 16:10:29 +0000 |
commit | 035ac813b4f7eaa52eea193c9716c939fbc937ef (patch) | |
tree | ea0885d93bf982d7899457153fe9270ef96e19c8 | |
parent | b7ca08e773b64e7b54354141e34d929f2d1bb9cc (diff) |
- if ssp is enabled then make sure that __stack_chk_fail resolves
-rw-r--r-- | libnsl/Makefile.in | 5 | ||||
-rw-r--r-- | libresolv/Makefile.in | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/libnsl/Makefile.in b/libnsl/Makefile.in index 7cf64a6fc..0995b3c4f 100644 --- a/libnsl/Makefile.in +++ b/libnsl/Makefile.in @@ -8,6 +8,11 @@ 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 LIBS-libnsl.so := $(LIBS) 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) |