mirror of https://github.com/google/oss-fuzz.git
nDPI: disable code instrumentation for external libraries (#8605)
This commit is contained in:
parent
1d5cb19694
commit
24c4df9e1c
|
@ -15,6 +15,13 @@
|
|||
#
|
||||
################################################################################
|
||||
|
||||
#Disable code instrumentation
|
||||
CFLAGS_SAVE="$CFLAGS"
|
||||
CXXFLAGS_SAVE="$CXXFLAGS"
|
||||
unset CFLAGS
|
||||
unset CXXFLAGS
|
||||
export AFL_NOOPT=1
|
||||
|
||||
# build libpcap
|
||||
tar -xvzf libpcap-1.9.1.tar.gz
|
||||
cd libpcap-1.9.1
|
||||
|
@ -30,6 +37,11 @@ cmake -DBUILD_SHARED_LIBS=OFF ..
|
|||
make install
|
||||
cd ../..
|
||||
|
||||
#Re-enable code instrumentation
|
||||
export CFLAGS="${CFLAGS_SAVE}"
|
||||
export CXXFLAGS="${CXXFLAGS_SAVE}"
|
||||
unset AFL_NOOPT
|
||||
|
||||
# build project
|
||||
cd ndpi
|
||||
sh autogen.sh
|
||||
|
|
Loading…
Reference in New Issue