summaryrefslogtreecommitdiffstats
path: root/libnsl
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-27 14:32:51 +0000
committerCarmelo Amoroso <carmelo.amoroso@st.com>2008-11-27 14:32:51 +0000
commit0dbf6abb93407b6aa83f8a3b397cafbd3095cfdc (patch)
tree9e5ed43555c017ec1e796dcb6494d4d3385a259c /libnsl
parentccc8bff366ed3fdf94fbd308194c175a52a0a86b (diff)
downloaduClibc-alpine-0dbf6abb93407b6aa83f8a3b397cafbd3095cfdc.tar.bz2
uClibc-alpine-0dbf6abb93407b6aa83f8a3b397cafbd3095cfdc.tar.xz
Synch with trunk @ 24160
Step 13: build system updates.
Diffstat (limited to 'libnsl')
-rw-r--r--libnsl/Makefile.in9
1 files changed, 7 insertions, 2 deletions
diff --git a/libnsl/Makefile.in b/libnsl/Makefile.in
index a66b90c6f..0995b3c4f 100644
--- a/libnsl/Makefile.in
+++ b/libnsl/Makefile.in
@@ -1,6 +1,6 @@
# Makefile for uClibc
#
-# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+# Copyright (C) 2000-2008 Erik Andersen <andersen@uclibc.org>
#
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
#
@@ -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)
@@ -47,4 +52,4 @@ $(top_builddir)lib/libnsl.a: $(libnsl-a-y)
$(do_ar)
libnsl_clean:
- $(RM) $(libnsl_OUT)/*.{o,os,a}
+ $(do_rm) $(addprefix $(libnsl_OUT)/*., o os a)