diff options
author | Max Dymond <cmeister2@gmail.com> | 2017-09-01 21:48:41 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-02 11:07:55 +0200 |
commit | 57001ce3bb97455d799f0a2180b7bf1287ffd71a (patch) | |
tree | 70673d337088c000590eb7645b4702cf7adea7e1 /tests/fuzz/Makefile.inc | |
parent | c290b8fb23f6b6fd8e06e22755d23a5e8e3623aa (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/Makefile.inc')
-rw-r--r-- | tests/fuzz/Makefile.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/fuzz/Makefile.inc b/tests/fuzz/Makefile.inc index 4d475374b..f52adb89c 100644 --- a/tests/fuzz/Makefile.inc +++ b/tests/fuzz/Makefile.inc @@ -1,15 +1,15 @@ FUZZPROGS = curl_fuzzer FUZZLIBS = libstandaloneengine.a -curl_fuzzer_SOURCES = curl_fuzzer.c -curl_fuzzer_CFLAGS = $(AM_CFLAGS) +curl_fuzzer_SOURCES = curl_fuzzer.cc +curl_fuzzer_CXXFLAGS = $(AM_CXXFLAGS) -libstandaloneengine_a_SOURCES = standalone_fuzz_target_runner.c -libstandaloneengine_a_CFLAGS = $(AM_CFLAGS) +libstandaloneengine_a_SOURCES = standalone_fuzz_target_runner.cc +libstandaloneengine_a_CXXFLAGS = $(AM_CXXFLAGS) # Some more targets. zip: zip -q -r curl_fuzzer_seed_corpus.zip curl_fuzz_data check: all - ./curl_fuzzer curl_fuzz_data/*
\ No newline at end of file + ./curl_fuzzer curl_fuzz_data/* |