1# $FreeBSD$ 2 3.include <bsd.own.mk> 4 5TESTSDIR= ${TESTSBASE}/lib/libc/ssp 6 7NO_WERROR= 8WARNS?= 2 9 10CFLAGS.h_raw+= -fstack-protector-all -Wstack-protector 11.if ${COMPILER_TYPE} == "clang" 12CFLAGS.h_raw+= -fsanitize=bounds 13.elif ${COMPILER_TYPE} == "gcc" 14CFLAGS.h_raw+= --param ssp-buffer-size=1 15DPADD+= ${LIBSSP} 16LDADD+= -lssp 17.endif 18 19NETBSD_ATF_TESTS_SH= ssp_test 20 21BINDIR= ${TESTSDIR} 22 23PROGS= h_fgets 24PROGS+= h_gets 25PROGS+= h_getcwd 26PROGS+= h_memcpy 27PROGS+= h_memmove 28PROGS+= h_memset 29PROGS+= h_raw 30PROGS+= h_read 31PROGS+= h_readlink 32PROGS+= h_snprintf 33PROGS+= h_sprintf 34PROGS+= h_stpcpy 35PROGS+= h_stpncpy 36PROGS+= h_strcat 37PROGS+= h_strcpy 38PROGS+= h_strncat 39PROGS+= h_strncpy 40PROGS+= h_vsnprintf 41PROGS+= h_vsprintf 42 43.include "../Makefile.netbsd-tests" 44 45.include <bsd.test.mk> 46