diff options
author | 2018-03-26 00:13:03 -0400 | |
---|---|---|
committer | 2018-03-25 21:13:03 -0700 | |
commit | 6ecb20612a2718024232ca6af30d85600fbf0073 (patch) | |
tree | 0ca0df22ea6a7f480097e88c4944a3e411aa6a91 | |
parent | 49b99a278dbd0c567d3b5c4eae0b15a8ab5fc147 (diff) |
fix libjpeg-turbo build (#1269)
-rw-r--r-- | projects/libjpeg-turbo/Dockerfile | 2 | ||||
-rwxr-xr-x | projects/libjpeg-turbo/build.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/projects/libjpeg-turbo/Dockerfile b/projects/libjpeg-turbo/Dockerfile index af9db9ef..91ecf3e9 100644 --- a/projects/libjpeg-turbo/Dockerfile +++ b/projects/libjpeg-turbo/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER alex.gaynor@gmail.com -RUN apt-get update && apt-get install -y make autoconf automake libtool nasm curl +RUN apt-get update && apt-get install -y make autoconf automake libtool nasm curl cmake RUN git clone --depth 1 https://github.com/libjpeg-turbo/libjpeg-turbo RUN mkdir afl-testcases diff --git a/projects/libjpeg-turbo/build.sh b/projects/libjpeg-turbo/build.sh index 4a3eb353..5e830122 100755 --- a/projects/libjpeg-turbo/build.sh +++ b/projects/libjpeg-turbo/build.sh @@ -15,12 +15,12 @@ # ################################################################################ -autoreconf -fiv -./configure +cmake . -DCMAKE_INSTALL_PREFIX=$WORK -DENABLE_STATIC:bool=on make "-j$(nproc)" +make install $CXX $CXXFLAGS -std=c++11 -I. \ $SRC/libjpeg_turbo_fuzzer.cc -o $OUT/libjpeg_turbo_fuzzer \ - -lFuzzingEngine ./.libs/libturbojpeg.a + -lFuzzingEngine "$WORK/lib/libturbojpeg.a" cp $SRC/libjpeg_turbo_fuzzer_seed_corpus.zip $OUT/ |