From 74e6ce04b793b5ab86dc7a165889b38e9cc0c913 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 10 Mar 2022 13:52:57 -0800 Subject: [PATCH] Wireshark: Explicitly build fuzzshark. (#7373) Pass -DBUILD_fuzzshark=ON to CMake in case upstream disables it by default. --- projects/wireshark/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/wireshark/build.sh b/projects/wireshark/build.sh index bdb34eb52..82a0279ab 100755 --- a/projects/wireshark/build.sh +++ b/projects/wireshark/build.sh @@ -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"