putting libfuzzer.a into /usr/lib/

This commit is contained in:
Mike Aizatsky 2016-11-01 13:19:39 -07:00
parent b770674426
commit efbcadbe12
1 changed files with 1 additions and 4 deletions

View File

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