diff --git a/projects/libssh/build.sh b/projects/libssh/build.sh index a45c325e5..b0a3d150e 100644 --- a/projects/libssh/build.sh +++ b/projects/libssh/build.sh @@ -20,14 +20,14 @@ mkdir -p $BUILD pushd $BUILD cmake -DCMAKE_C_COMPILER="$CC" -DCMAKE_CXX_COMPILER="$CXX" \ -DCMAKE_C_FLAGS="$CFLAGS" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DBUILD_SHARED_LIBS=OFF $SRC/libssh + -DBUILD_SHARED_LIBS=OFF -DWITH_INSECURE_NONE=ON $SRC/libssh make "-j$(nproc)" fuzzers=$(find $SRC/libssh/tests/fuzz/ -name "*_fuzzer.cpp") for f in $fuzzers; do fuzzerName=$(basename $f .cpp) echo "Building fuzzer $fuzzerName" - $CXX $CXXFLAGS -std=c++11 -I$SRC/libssh/include/ \ + $CXX $CXXFLAGS -std=c++11 -I$SRC/libssh/include/ -I$BUILD/include/ \ "$f" -o "$OUT/$fuzzerName" \ $LIB_FUZZING_ENGINE ./src/libssh.a -Wl,-Bstatic -lcrypto -lz -Wl,-Bdynamic