we can now compile libc with _FORTIFY_SOURCE

This commit is contained in:
christos 2007-06-03 17:42:18 +00:00
parent 2b3b97e3ff
commit 380cacfb28
1 changed files with 1 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.sys.mk,v 1.153 2007/05/31 00:17:32 uwe Exp $
# $NetBSD: bsd.sys.mk,v 1.154 2007/06/03 17:42:18 christos Exp $
#
# Build definitions used for NetBSD source tree builds.
@ -49,11 +49,9 @@ HAS_SSP= yes
.if defined(USE_FORT) && (${USE_FORT} != "no")
USE_SSP?= yes
.if !defined(KERNSRCDIR) && !defined(KERN) # not for kernels nor kern modules
.if !defined(LIB) || (${LIB} != "c")
CPPFLAGS+= -D_FORTIFY_SOURCE=2
.endif
.endif
.endif
.if defined(USE_SSP) && (${USE_SSP} != "no") && (${BINDIR:Ux} != "/usr/mdec")
.if ${HAS_SSP} == "yes"