Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/secure/Makefile.inc
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# libc sources related to security | # libc sources related to security | ||||
.PATH: ${LIBC_SRCTOP}/secure | .PATH: ${LIBC_SRCTOP}/secure | ||||
SSP_SRCS= gets_chk.c fgets_chk.c memcpy_chk.c memmove_chk.c memset_chk.c \ | |||||
snprintf_chk.c sprintf_chk.c stpcpy_chk.c stpncpy_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} | |||||
.endfor | |||||
CFLAGS.snprintf_chk.c+= -Wno-unused-parameter | |||||
CFLAGS.sprintf_chk.c+= -Wno-unused-parameter | |||||
CFLAGS.vsnprintf_chk.c+= -Wno-unused-parameter | |||||
CFLAGS.vsprintf_chk.c+= -Wno-unused-parameter | |||||
# Sources common to both syscall interfaces: | # Sources common to both syscall interfaces: | ||||
SRCS+= stack_protector.c \ | SRCS+= stack_protector.c \ | ||||
stack_protector_compat.c | stack_protector_compat.c | ||||
SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map | SYM_MAPS+= ${LIBC_SRCTOP}/secure/Symbol.map |