diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2020-10-23 22:27:45 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2020-10-23 22:27:45 +0000 |
commit | 3e7449a37b92e7b5333c4be704a191661f038a9a (patch) | |
tree | 24401467a936a3e18f37c4544ce9d8710d1dee9f /lib/libc | |
parent | 9729b14985832614fe7a8e372a9dcccaffc7d05d (diff) |
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/tests/ssp/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/tests/ssp/Makefile b/lib/libc/tests/ssp/Makefile index 54dceb0eceb7f..f321fe08f2a0d 100644 --- a/lib/libc/tests/ssp/Makefile +++ b/lib/libc/tests/ssp/Makefile @@ -6,7 +6,9 @@ NO_WERROR= WARNS?= 2 CFLAGS.h_raw+= -fstack-protector-all -Wstack-protector -.if ${COMPILER_TYPE} == "clang" +.if ${COMPILER_TYPE} == "clang" && ${CC} == "cc" +# Only use -fsanitize=bounds when using the in-tree compiler. Otherwise +# we may link to a sanitizer library targeted at a newer kernel/libc. CFLAGS.h_raw+= -fsanitize=bounds .elif ${COMPILER_TYPE} == "gcc" CFLAGS.h_raw+= --param ssp-buffer-size=1 |