[sqlite3] you have to link libfuzzer with clang++

This commit is contained in:
Mike Aizatsky 2016-11-18 18:34:01 -08:00
parent a27eca33a3
commit 163f49c7ab
1 changed files with 5 additions and 2 deletions

View File

@ -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/