diff --git a/projects/suricata/Dockerfile b/projects/suricata/Dockerfile index 1c85c3414..e4486b94f 100644 --- a/projects/suricata/Dockerfile +++ b/projects/suricata/Dockerfile @@ -15,7 +15,7 @@ ################################################################################ FROM gcr.io/oss-fuzz-base/base-builder -RUN apt-get update && apt-get install -y build-essential autoconf automake libtool make pkg-config rustc cargo python flex bison zlib1g-dev libpcre3-dev +RUN apt-get update && apt-get install -y build-essential autoconf automake libtool make pkg-config python flex bison zlib1g-dev libpcre3-dev #TODO libmagic, liblzma, pcre and other optional libraries ADD https://www.tcpdump.org/release/libpcap-1.9.1.tar.gz libpcap-1.9.1.tar.gz diff --git a/projects/suricata/build.sh b/projects/suricata/build.sh index 4dd233436..843e9afc8 100755 --- a/projects/suricata/build.sh +++ b/projects/suricata/build.sh @@ -44,10 +44,10 @@ make -j$(nproc) make install cd .. +export CARGO_BUILD_TARGET="x86_64-unknown-linux-gnu" # build project cd suricata -export PATH=$PATH:/root/.cargo/bin sh autogen.sh #run configure with right options ./src/tests/fuzz/oss-fuzz-configure.sh