dc99372be9
include path: the normal header files now include the "SSP" ones (which one should note are not really named right: SSP and FORTIFY_SOURCE are independent features). Disable USE_SSP on targets where the compiler doesn't support it at all (mips, alpha) or it's known broken (sh3). But enable FORTIFY_SOURCE, without SSP, on those platforms -- tested on mipsel.
15 lines
371 B
Makefile
15 lines
371 B
Makefile
# $NetBSD: Makefile.inc,v 1.2 2007/05/30 21:14:35 tls Exp $
|
|
|
|
.PATH: ${.CURDIR}/ssp
|
|
|
|
SSP_SRCS= gets_chk.c fgets_chk.c memcpy_chk.c memmove_chk.c memset_chk.c \
|
|
snprintf_chk.c sprintf_chk.c strcat_chk.c strcpy_chk.c \
|
|
strncat_chk.c strncpy_chk.c vsnprintf_chk.c vsprintf_chk.c
|
|
|
|
.for i in ${SSP_SRCS}
|
|
SRCS+=${i}
|
|
WARNS.${i}=4
|
|
.endfor
|
|
|
|
MAN+= ssp.3 __builtin_object_size.3
|