aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/README
diff options
context:
space:
mode:
authorMax Dymond <cmeister2@gmail.com>2017-09-01 21:48:41 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-09-02 11:07:55 +0200
commit57001ce3bb97455d799f0a2180b7bf1287ffd71a (patch)
tree70673d337088c000590eb7645b4702cf7adea7e1 /tests/fuzz/README
parentc290b8fb23f6b6fd8e06e22755d23a5e8e3623aa (diff)
ossfuzz: Move to C++ for curl_fuzzer.
Automake gets confused if you want to use C++ static libraries with C code - basically we need to involve the clang++ linker. The easiest way of achieving this is to rename the C code as C++ code. This gets us a bit further along the path and ought to be compatible with Google's version of clang.
Diffstat (limited to 'tests/fuzz/README')
-rw-r--r--tests/fuzz/README2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fuzz/README b/tests/fuzz/README
index cdb69fe82..8b5fcd011 100644
--- a/tests/fuzz/README
+++ b/tests/fuzz/README
@@ -8,7 +8,9 @@ Building the fuzz target
From the CURL root directory:
export CC=clang-5.0
+export CXX=clang++-5.0
export CFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp"
+export CXXFLAGS="-fsanitize=address -fsanitize-address-use-after-scope -fsanitize-coverage=trace-pc-guard,trace-cmp -stdlib=libc++"
./configure --disable-shared --enable-debug --enable-maintainer-mode
make -sj