nDPI: disable code instrumentation for external libraries (#8605)

This commit is contained in:
Ivan Nardi 2022-09-27 17:42:27 +02:00 committed by GitHub
parent 1d5cb19694
commit 24c4df9e1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 0 deletions

View File

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