summaryrefslogtreecommitdiffstats
path: root/lib/libc/Makefile
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-05-19 17:49:20 +0000
committermarcel <marcel@FreeBSD.org>2012-05-19 17:49:20 +0000
commitc0a523b836a71a5b4fd9eb3ea74c72ad96a36d12 (patch)
treeb762e4507cf81839e4b28d78a36dd47392210e4e /lib/libc/Makefile
parent02e775da30bffe0742f314de0b58155eec5d1634 (diff)
downloadFreeBSD-src-c0a523b836a71a5b4fd9eb3ea74c72ad96a36d12.zip
FreeBSD-src-c0a523b836a71a5b4fd9eb3ea74c72ad96a36d12.tar.gz
Don't link against libssp if MK_SSP is set to no.
Note that this still misses a proper dependency at this time.
Diffstat (limited to 'lib/libc/Makefile')
-rw-r--r--lib/libc/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/libc/Makefile b/lib/libc/Makefile
index 2222384..7684eb9 100644
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -41,7 +41,11 @@ CFLAGS+=${CANCELPOINTS_CFLAGS}
#
DPADD+= ${LIBGCC}
LDFLAGS+= -nodefaultlibs
-LDADD+= -lgcc -lssp_nonshared
+LDADD+= -lgcc
+
+.if ${MK_SSP} != "no"
+LDADD+= -lssp_nonshared
+.endif
# Define (empty) variables so that make doesn't give substitution
# errors if the included makefiles don't change these:
OpenPOWER on IntegriCloud