From 163f49c7aba73b2841138ce793c6239e3be25e30 Mon Sep 17 00:00:00 2001 From: Mike Aizatsky Date: Fri, 18 Nov 2016 18:34:01 -0800 Subject: [PATCH] [sqlite3] you have to link libfuzzer with clang++ --- targets/sqlite3/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/targets/sqlite3/build.sh b/targets/sqlite3/build.sh index 714cb66ff..5a0bbbf1f 100755 --- a/targets/sqlite3/build.sh +++ b/targets/sqlite3/build.sh @@ -27,8 +27,11 @@ export CFLAGS="$CFLAGS -DSQLITE_MAX_LENGTH=128000000 \ make -j$(nproc) make sqlite3.c -$CC $CFLAGS -I. \ - $SRC/sqlite3/test/ossfuzz.c -o $OUT/ossfuzz \ +$CC $CCFLAGS -I. -c \ + $SRC/sqlite3/test/ossfuzz.c -o $SRC/sqlite3/test/ossfuzz.o + +$CXX $CXXFLAGS \ + $SRC/sqlite3/test/ossfuzz.o -o $OUT/ossfuzz \ -lfuzzer ./sqlite3.o cp $SRC/*.options $SRC/*.dict $SRC/*.zip $OUT/