]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - lib/libc/tests/ssp/Makefile
MFC r289172,r290254:
[FreeBSD/stable/10.git] / lib / libc / tests / ssp / Makefile
1 # $FreeBSD$
2
3 .include <bsd.own.mk>
4
5 NO_WERROR=
6 WARNS?= 2
7
8 CFLAGS.h_raw+=  -fstack-protector-all -Wstack-protector
9 .if ${COMPILER_TYPE} == "clang"
10 CFLAGS.h_raw+=  -fsanitize=bounds
11 .elif ${COMPILER_TYPE} == "gcc"
12 CFLAGS.h_raw+=  --param ssp-buffer-size=1
13 DPADD+=         ${LIBSSP}
14 LDADD+=         -lssp
15 .endif
16
17 NETBSD_ATF_TESTS_SH=    ssp_test
18
19 BINDIR=         ${TESTSDIR}
20
21 PROGS=          h_fgets
22 PROGS+=         h_gets
23 PROGS+=         h_getcwd
24 PROGS+=         h_memcpy
25 PROGS+=         h_memmove
26 PROGS+=         h_memset
27 # This testcase doesn't run properly when not compiled with -fsantize=bounds
28 # with clang, which is currently contingent on a compiler_rt update
29 .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} < 30500
30 PROGS+=         h_raw
31 .endif
32 PROGS+=         h_read
33 PROGS+=         h_readlink
34 PROGS+=         h_snprintf
35 PROGS+=         h_sprintf
36 PROGS+=         h_stpcpy
37 PROGS+=         h_stpncpy
38 PROGS+=         h_strcat
39 PROGS+=         h_strcpy
40 PROGS+=         h_strncat
41 PROGS+=         h_strncpy
42 PROGS+=         h_vsnprintf
43 PROGS+=         h_vsprintf
44
45 .include "../Makefile.netbsd-tests"
46
47 .include <bsd.test.mk>