mirror of https://github.com/google/oss-fuzz.git
[libressl] Fix Cryptofuzz build (#4691)
This commit is contained in:
parent
91a6a12dbe
commit
392e5f8557
|
@ -15,11 +15,12 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
FROM gcr.io/oss-fuzz-base/base-builder
|
FROM gcr.io/oss-fuzz-base/base-builder
|
||||||
RUN apt-get update && apt-get install -y make cmake libboost-all-dev
|
RUN apt-get update && apt-get install -y make cmake wget
|
||||||
RUN git clone --depth 1 https://github.com/libressl-portable/portable.git libressl
|
RUN git clone --depth 1 https://github.com/libressl-portable/portable.git libressl
|
||||||
RUN git clone --depth 1 https://github.com/libressl-portable/fuzz.git libressl.fuzzers
|
RUN git clone --depth 1 https://github.com/libressl-portable/fuzz.git libressl.fuzzers
|
||||||
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
|
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz
|
||||||
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora
|
RUN git clone --depth 1 https://github.com/guidovranken/cryptofuzz-corpora
|
||||||
|
RUN wget https://dl.bintray.com/boostorg/release/1.74.0/source/boost_1_74_0.tar.bz2
|
||||||
WORKDIR libressl
|
WORKDIR libressl
|
||||||
RUN ./update.sh
|
RUN ./update.sh
|
||||||
COPY build.sh *.options $SRC/
|
COPY build.sh *.options $SRC/
|
||||||
|
|
|
@ -16,6 +16,14 @@
|
||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
# Install Boost headers
|
||||||
|
cd $SRC/
|
||||||
|
tar jxf boost_1_74_0.tar.bz2
|
||||||
|
cd boost_1_74_0/
|
||||||
|
CFLAGS="" CXXFLAGS="" ./bootstrap.sh
|
||||||
|
CFLAGS="" CXXFLAGS="" ./b2 headers
|
||||||
|
cp -R boost/ /usr/include/
|
||||||
|
|
||||||
# Prevent Boost compilation error with -std=c++17
|
# Prevent Boost compilation error with -std=c++17
|
||||||
export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"
|
export CXXFLAGS="$CXXFLAGS -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue