Don't link against libssp if MK_SSP is set to no.

Note that this still misses a proper dependency at this time.
This commit is contained in:
Marcel Moolenaar 2012-05-19 17:49:20 +00:00
parent d08dfc3305
commit 46ad370763
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235653

View File

@ -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: