autobuild: extend autobuild with samba-fuzz job to build the fuzzers in AFL mode...
[metze/samba-autobuild/.git] / lib / fuzzing / oss-fuzz / build_samba.sh
index e4783442b207d2ac94c021e877691650a3334a1b..63b81af08106650af1f1672cf3f1ec3b394bf4c2 100755 (executable)
@@ -11,6 +11,9 @@
 #
 # CFLAGS are supplied by the caller, eg the oss-fuzz compile command
 #
+# Additional arguments are passed to configure, to allow this to be
+# tested in autobuild.py
+#
 ADDITIONAL_CFLAGS="$CFLAGS"
 export ADDITIONAL_CFLAGS
 CFLAGS=""
@@ -42,7 +45,9 @@ esac
            --disable-warnings-as-errors \
            --abi-check-disable \
            --fuzz-target-ldflags="$LIB_FUZZING_ENGINE" \
-           --nonshared-binary=ALL LINK_CC="$CXX"
+           --nonshared-binary=ALL \
+           "$@" \
+           LINK_CC="$CXX"
 
 make -j