summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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