diff --git a/buildpls b/buildpls new file mode 100755 index 00000000..75f963af --- /dev/null +++ b/buildpls @@ -0,0 +1,11 @@ +#!/bin/bash + +# get and build nDPI and deps before building fastnetmon + +export MAKEFLAGS="$MAKEFLAGS -j$(nproc)" +export moarflags="-Wno-reorder -Wno-unused-variable -Wno-unused-parameter -Wno-sign-compare -Wno-unused-but-set-variable -Wno-format-truncation -Wno-implicit-fallthrough -Wno-type-limits -Wno-class-memaccess" # since there's just so many warnings (I know, they should be fixed) + +cd src +git apply patches/cmake-libndpi-nolibicu-cpp17-includes-protoc-grpc.patch +cmake -DCMAKE_CXX_FLAGS="$CMAKE_CXX_FLAGS -Wall -Werror $moarflags -Wextra" +make clean fastnetmon all