mirror of https://github.com/google/oss-fuzz.git
xmlsec: fix build. (#5941)
This commit is contained in:
parent
de2e9e1f74
commit
030782d4e4
|
@ -16,7 +16,7 @@
|
|||
|
||||
FROM gcr.io/oss-fuzz-base/base-builder
|
||||
RUN apt-get update && apt-get install -y make autoconf automake libtool pkg-config \
|
||||
libssl-dev libxslt-dev wget liblzma-dev
|
||||
libssl-dev wget liblzma-dev python-dev python3-dev
|
||||
|
||||
RUN git clone --depth 1 https://github.com/lsh123/xmlsec
|
||||
RUN git clone --depth 1 https://gitlab.gnome.org/GNOME/libxml2.git
|
||||
|
|
|
@ -28,7 +28,7 @@ make -j$(nproc) all
|
|||
make install
|
||||
|
||||
cd $SRC/libxslt
|
||||
./autogen.sh --prefix="$XMLSEC_DEPS_PATH"
|
||||
./autogen.sh --prefix="$XMLSEC_DEPS_PATH" --with-libxml-src=${SRC}/libxml2
|
||||
make -j$(nproc)
|
||||
make install
|
||||
|
||||
|
@ -40,7 +40,8 @@ make -j$(nproc) all
|
|||
|
||||
for file in $SRC/xmlsec/tests/oss-fuzz/*_target.c; do
|
||||
b=$(basename $file _target.c)
|
||||
$CC $CFLAGS -c $file -I /usr/include/libxml2 -I ./include/ \
|
||||
echo -e "#include <stdint.h>\n$(cat $file)" > $file
|
||||
$CC $CFLAGS -c $file -I${XMLSEC_DEPS_PATH=}/include/libxml2 -I${XMLSEC_DEPS_PATH=}/include/ -I ./include/ \
|
||||
-o $OUT/${b}_target.o
|
||||
$CXX $CXXFLAGS $OUT/${b}_target.o ./src/.libs/libxmlsec1.a \
|
||||
./src/openssl/.libs/libxmlsec1-openssl.a $LIB_FUZZING_ENGINE \
|
||||
|
|
Loading…
Reference in New Issue