Wireshark: Explicitly build fuzzshark. (#7373)

Pass -DBUILD_fuzzshark=ON to CMake in case upstream disables it by
default.
This commit is contained in:
Gerald Combs 2022-03-10 13:52:57 -08:00 committed by GitHub
parent 4261d526ad
commit 74e6ce04b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -23,10 +23,13 @@ export SAMPLES_DIR="$WORK/samples"
mkdir -p "$SAMPLES_DIR"
cp -a $SRC/wireshark-fuzzdb/samples/* "$SAMPLES_DIR"
# Make sure we build fuzzshark.
CMAKE_DEFINES="-DBUILD_fuzzshark=ON"
# compile static version of libs
# XXX, with static wireshark linking each fuzzer binary is ~346 MB (just libwireshark.a is 761 MB).
# XXX, wireshark is not ready for including static plugins into binaries.
CMAKE_DEFINES="-DENABLE_STATIC=ON -DENABLE_PLUGINS=OFF"
CMAKE_DEFINES="$CMAKE_DEFINES -DENABLE_STATIC=ON -DENABLE_PLUGINS=OFF"
# disable optional dependencies
CMAKE_DEFINES="$CMAKE_DEFINES -DENABLE_PCAP=OFF -DENABLE_GNUTLS=OFF"