diff options
Diffstat (limited to 'mk/platform')
-rw-r--r-- | mk/platform/NetBSD.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk index f771006e238..784ad534dab 100644 --- a/mk/platform/NetBSD.mk +++ b/mk/platform/NetBSD.mk @@ -1,4 +1,4 @@ -# $NetBSD: NetBSD.mk,v 1.44 2015/07/27 23:37:38 khorben Exp $ +# $NetBSD: NetBSD.mk,v 1.45 2015/08/10 21:44:34 khorben Exp $ # # Variable definitions for the NetBSD operating system. @@ -128,6 +128,11 @@ FFLAGS+= -mieee PKG_HAVE_KQUEUE= # defined .endif +.if ${PKGSRC_USE_FORT:Uno} != "no" +# build with fortify +_GCC_CFLAGS+= -D_FORTIFY_SOURCE=2 +.endif + .if ${PKGSRC_USE_SSP:Uno} != "no" . if (${MACHINE_ARCH} != "alpha") && \ (${MACHINE_ARCH} != "hppa") && \ |