mirror of https://github.com/google/oss-fuzz.git
Fix centipede compilation (#9613)
1. Don't use trace-loads as it is not fully supported in LLVM and breaks
many projects (see
9383870160
)
2. Use -Wl for link time options so they aren't unnecessarily used (also
fixes meson based projects).
This commit is contained in:
parent
9bbc9ad236
commit
a75aab95ec
|
@ -25,11 +25,10 @@ fi
|
|||
|
||||
cp "$BIN_DIR/libcentipede_runner.pic.a" "$LIB_FUZZING_ENGINE"
|
||||
|
||||
export DFTRACING_FLAGS='-fsanitize-coverage=trace-loads'
|
||||
export CENTIPEDE_FLAGS=`cat "$SRC/centipede/clang-flags.txt" | tr '\n' ' '`
|
||||
export LIBRARIES_FLAGS="-Wno-unused-command-line-argument -ldl -lrt -lpthread $SRC/centipede/weak.o"
|
||||
export LIBRARIES_FLAGS="-Wno-unused-command-line-argument -Wl,-ldl -Wl,-lrt -Wl,-lpthread -Wl,$SRC/centipede/weak.o"
|
||||
|
||||
export CFLAGS="$CFLAGS $DFTRACING_FLAGS $CENTIPEDE_FLAGS $LIBRARIES_FLAGS"
|
||||
export CXXFLAGS="$CXXFLAGS $DFTRACING_FLAGS $CENTIPEDE_FLAGS $LIBRARIES_FLAGS"
|
||||
export CFLAGS="$CFLAGS $CENTIPEDE_FLAGS $LIBRARIES_FLAGS"
|
||||
export CXXFLAGS="$CXXFLAGS $CENTIPEDE_FLAGS $LIBRARIES_FLAGS"
|
||||
|
||||
echo 'done.'
|
||||
|
|
Loading…
Reference in New Issue