NetBSD/lib/libc/ssp/Makefile.inc
tls dc99372be9 Match usage of FORTIFY_SOURCE on other platforms by not requiring special
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.
2007-05-30 21:14:35 +00:00

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