aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/openssl
diff options
context:
space:
mode:
authorGravatar Mike Aizatsky <mike.aizatsky@gmail.com>2016-12-16 14:46:19 -0800
committerGravatar GitHub <noreply@github.com>2016-12-16 14:46:19 -0800
commit6a1d6b0d541d3f256344f819fdf23fee350487a6 (patch)
tree1608fdc05a4cc94ee14c4c1134d78e2fd0eb723d /projects/openssl
parentf2b8cb5508d1cb92544fbdb463db30c661c4abdf (diff)
[openssl] use clang++ for linking #195 (#198)
Diffstat (limited to 'projects/openssl')
-rwxr-xr-xprojects/openssl/build.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/projects/openssl/build.sh b/projects/openssl/build.sh
index 24fb4042..0627eb37 100755
--- a/projects/openssl/build.sh
+++ b/projects/openssl/build.sh
@@ -17,12 +17,7 @@
./config enable-fuzz-libfuzzer -DPEDANTIC -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION no-shared enable-tls1_3 enable-rc5 enable-md2 enable-ec_nistp_64_gcc_128 enable-ssl3 enable-ssl3-method enable-nextprotoneg enable-weak-ssl-ciphers --with-fuzzer-lib=/usr/lib/libFuzzingEngine $CFLAGS -fno-sanitize=alignment
-# openssl uses clang, not clang++ for linking. Add c++ libraries.
-EX_LIBS="-ldl /usr/local/lib/libc++.a"
-if [[ $SANITIZER = undefined ]]; then
- EX_LIBS="$EX_LIBS /usr/local/lib/clang/4.0.0/lib/linux/libclang_rt.ubsan_standalone_cxx-x86_64.a /usr/local/lib/clang/4.0.0/lib/linux/libclang_rt.ubsan_standalone-x86_64.a"
-fi
-make -j$(nproc) EX_LIBS="$EX_LIBS"
+make -j$(nproc) LDCMD="clang++ $CXXFLAGS"
fuzzers=$(find fuzz -executable -type f '!' -name \*.py '!' -name \*-test)
for f in $fuzzers; do