diff options
author | dim <dim@FreeBSD.org> | 2014-11-24 20:07:09 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-24 20:07:09 +0000 |
commit | a4c4d4abcc40c0860e6961bf2f7c76f7ab5a3ada (patch) | |
tree | c9a7d2ca316ecb5a96b0e9ab5fe1c7447b946174 /lib | |
parent | 5ffe4e5562c85ed6d4629e3641a23080692df4aa (diff) | |
download | FreeBSD-src-a4c4d4abcc40c0860e6961bf2f7c76f7ab5a3ada.zip FreeBSD-src-a4c4d4abcc40c0860e6961bf2f7c76f7ab5a3ada.tar.gz |
For now, disable using -fsanitize=bounds for the libc ssp tests, when
using clang 3.5.0, until the runtime support (via compiler-rt) is added.
Otherwise, this would lead to link errors about missing support
libraries.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/tests/ssp/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/tests/ssp/Makefile b/lib/libc/tests/ssp/Makefile index cf767ce..1649cc2 100644 --- a/lib/libc/tests/ssp/Makefile +++ b/lib/libc/tests/ssp/Makefile @@ -9,7 +9,10 @@ WARNS?= 2 CFLAGS.h_raw+= -fstack-protector-all -Wstack-protector .if ${COMPILER_TYPE} == "clang" +# Disable -fsanitize=bounds until runtime support is done for clang 3.5.0. +.if ${COMPILER_VERSION} < 30500 CFLAGS.h_raw+= -fsanitize=bounds +.endif .elif ${COMPILER_TYPE} == "gcc" CFLAGS.h_raw+= --param ssp-buffer-size=1 DPADD+= ${LIBSSP} |