diff options
Diffstat (limited to 'projects/njs/build.sh')
-rwxr-xr-x | projects/njs/build.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/projects/njs/build.sh b/projects/njs/build.sh index 229a3538..166df14b 100755 --- a/projects/njs/build.sh +++ b/projects/njs/build.sh @@ -16,11 +16,14 @@ ################################################################################ # Build pcre dependency to be linked statically. -pushd $SRC/pcre +pushd $SRC/pcre2 ./autogen.sh CFLAGS="$CFLAGS -fno-use-cxa-atexit" CXXFLAGS="$CXXFLAGS -fno-use-cxa-atexit" ./configure make -j$(nproc) clean make -j$(nproc) all +make install +sed -i "s/\$libS\$libR \(-lpcre2-8$\)/\$libS\$libR -Wl,-Bstatic \1 -Wl,-Bdynamic/" /usr/local/bin/pcre2-config +#sed -i "s/libS=/libS=-L\${exec_prefix}\/lib/" /usr/local/bin/pcre2-config popd # build project @@ -35,7 +38,7 @@ SEED_CORPUS_PATH=$OUT/njs_process_script_fuzzer_seed_corpus mkdir -p $SEED_CORPUS_PATH set +x -cat src/test/njs_interactive_test.c src/test/njs_unit_test.c \ +cat src/test/njs_unit_test.c \ | egrep -o '".*"' | awk '{print substr($0,2,length($0)-2)}' | sort | uniq \ | while IFS= read -r line; do echo $line > $SEED_CORPUS_PATH/$(echo $line | sha1sum | awk '{ print $1 }'); |