mirror of https://github.com/google/oss-fuzz.git
Wireshark: Explicitly build fuzzshark. (#7373)
Pass -DBUILD_fuzzshark=ON to CMake in case upstream disables it by default.
This commit is contained in:
parent
4261d526ad
commit
74e6ce04b7
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue