diff options
Diffstat (limited to 'fuzz/oss-fuzz-build')
-rwxr-xr-x | fuzz/oss-fuzz-build | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fuzz/oss-fuzz-build b/fuzz/oss-fuzz-build new file mode 100755 index 00000000..8a0b7d42 --- /dev/null +++ b/fuzz/oss-fuzz-build @@ -0,0 +1,18 @@ +#!/bin/bash -e + +# This is used invoked from +# https://github.com/google/oss-fuzz/blob/master/projects/qpdf/build.sh + +# It should be run from the top level directory of a clean checkout of +# qpdf. It is also exercised in ../azure-pipelines/build-fuzzer + +./configure \ + --enable-oss-fuzz \ + --enable-static \ + --disable-shared \ + --prefix="$WORK" \ + LDFLAGS="-L$WORK/lib" \ + CPPFLAGS="-I$WORK/include" \ + LIBS="-pthread" +make -j$(nproc) install +make install_fuzz |