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/