Subject: Re: CVS commit: src/include (_FORTIFY_SOURCE)
To: None <source-changes@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: source-changes
Date: 08/03/2007 01:40:03
Krister Walfridsson <kristerw@netbsd.org> typed:
: Module Name:	src
: Committed By:	kristerw
: Date:		Thu Aug  2 21:49:10 UTC 2007
:
: Modified Files:
: 	src/include: stdio.h string.h strings.h unistd.h
:
: Log Message:
: Do not include SSP files unless _FORTIFY_SOURCE > 0.

If the aim is to completely not include SSP stuff, then you need to do
more in libc, otherwise this won't work.

Regards,
Geoff

--- lib/libc/Makefile.org	2007-05-30 15:44:54.000000000 +1000
+++ lib/libc/Makefile	2007-08-03 11:30:49.000000000 +1000
@@ -74,7 +74,9 @@
 .include "${.CURDIR}/regex/Makefile.inc"
 .include "${.CURDIR}/resolv/Makefile.inc"
 .include "${.CURDIR}/rpc/Makefile.inc"
+.if defined(${_FORTIFY_SOURCE}) && ${_FORTIFY_SOURCE} > 0
 .include "${.CURDIR}/ssp/Makefile.inc"
+.endif
 .include "${.CURDIR}/stdio/Makefile.inc"
 .include "${.CURDIR}/stdlib/Makefile.inc"
 .include "${.CURDIR}/string/Makefile.inc"