aboutsummaryrefslogtreecommitdiffstats
path: root/fuzz/oss-fuzz-build
blob: 8a0b7d42f627af50ab012fb069d3819d1b1db9b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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