mirror of https://github.com/google/oss-fuzz.git
putting libfuzzer.a into /usr/lib/
This commit is contained in:
parent
b770674426
commit
efbcadbe12
|
@ -20,15 +20,12 @@ echo "---------------------------------------------------------------"
|
|||
echo -n "Compiling libFuzzer into /usr/lib/libfuzzer.a ..."
|
||||
mkdir -p /work/libfuzzer
|
||||
cd /work/libfuzzer
|
||||
mkdir -p /work/lib
|
||||
$CXX $CXXFLAGS -std=c++11 $SANITIZER_FLAGS -c /src/libfuzzer/*.cpp -I/src/libfuzzer
|
||||
ar ruv /work/lib/libfuzzer.a /work/libfuzzer/*.o
|
||||
rm -rf /work/libfuzzer
|
||||
ar ruv /usr/lib/libfuzzer.a /work/libfuzzer/*.o
|
||||
echo "Done."
|
||||
|
||||
export CFLAGS="$CFLAGS $SANITIZER_FLAGS $COV_FLAGS"
|
||||
export CXXFLAGS="$CFLAGS $CXXFLAGS_EXTRA"
|
||||
export FUZZER_LDFLAGS="$FUZZER_LDFLAGS -L/work/lib"
|
||||
|
||||
echo "CC=$CC"
|
||||
echo "CXX=$CXX"
|
||||
|
|
Loading…
Reference in New Issue