diff options
author | tbeu <tbeu@users.noreply.github.com> | 2019-09-04 16:45:26 +0200 |
---|---|---|
committer | Abhishek Arya <inferno@chromium.org> | 2019-09-04 07:45:26 -0700 |
commit | d2aad464b70ebb37315a8748edbefc9f027d8693 (patch) | |
tree | 4f49aecfc5b7f506105a3b677683fa5d5bb7238c /projects | |
parent | ed5f4a337a1da84d52f86bcee133530302eabf15 (diff) |
Build with hdf5 and zlib support (#2794)
Diffstat (limited to 'projects')
-rw-r--r-- | projects/matio/Dockerfile | 4 | ||||
-rwxr-xr-x | projects/matio/build.sh | 11 | ||||
-rw-r--r-- | projects/matio/project.yaml | 1 |
3 files changed, 12 insertions, 4 deletions
diff --git a/projects/matio/Dockerfile b/projects/matio/Dockerfile index cc727f55..6f108993 100644 --- a/projects/matio/Dockerfile +++ b/projects/matio/Dockerfile @@ -16,8 +16,10 @@ FROM gcr.io/oss-fuzz-base/base-builder MAINTAINER t-beu@users.sourceforge.net -RUN apt-get update && apt-get install -y make autoconf automake libtool +RUN apt-get update && apt-get install -y make autoconf automake libtool libhdf5-dev zlib1g-dev +ENV HDF5_DIR /usr/lib/x86_64-linux-gnu/hdf5/serial RUN git clone --depth 1 git://git.code.sf.net/p/matio/matio matio WORKDIR matio +ADD https://support.hdfgroup.org/ftp/lib-external/szip/2.1.1/src/szip-2.1.1.tar.gz szip.tar.gz COPY build.sh $SRC/ COPY *.cc *.h $SRC/ diff --git a/projects/matio/build.sh b/projects/matio/build.sh index 34638656..514fbc73 100755 --- a/projects/matio/build.sh +++ b/projects/matio/build.sh @@ -15,9 +15,16 @@ # ################################################################################ +# build szip +tar -xvf szip.tar.gz +cd szip-2.1.1 +./configure --disable-shared CFLAGS="-w" +make -C src +cd .. + # build project ./autogen.sh -./configure +./configure --with-hdf5=$HDF5_DIR make -j$(nproc) make install @@ -26,5 +33,5 @@ for fuzzers in $(find $SRC -name '*_fuzzer.cc'); do base=$(basename -s .cc $fuzzers) $CXX $CXXFLAGS -std=c++11 -Iinclude \ $fuzzers ./getopt/.libs/libgetopt.a \ - ./src/.libs/libmatio.a -o $OUT/$base $LIB_FUZZING_ENGINE + ./src/.libs/libmatio.a -o $OUT/$base $LIB_FUZZING_ENGINE $HDF5_DIR/libhdf5.a ./szip-2.1.1/src/.libs/libsz.a -lz done diff --git a/projects/matio/project.yaml b/projects/matio/project.yaml index 5f1bb530..054efbe9 100644 --- a/projects/matio/project.yaml +++ b/projects/matio/project.yaml @@ -6,4 +6,3 @@ sanitizers: - undefined architectures: - x86_64 - - i386 |