diff --git a/projects/lxml/Dockerfile b/projects/lxml/Dockerfile index ea1be906f..008e5cf0c 100644 --- a/projects/lxml/Dockerfile +++ b/projects/lxml/Dockerfile @@ -16,7 +16,7 @@ FROM gcr.io/oss-fuzz-base/base-builder-python RUN git clone --depth 1 https://github.com/lxml/lxml -RUN apt-get install -y libxml2-dev libxslt-dev zlib1g-dev +RUN apt-get install -y zlib1g-dev RUN pip3 install Cython COPY build.sh $SRC/ diff --git a/projects/lxml/build.sh b/projects/lxml/build.sh index 04d08a761..c52b8840e 100644 --- a/projects/lxml/build.sh +++ b/projects/lxml/build.sh @@ -15,6 +15,11 @@ # ################################################################################ +export LIBXML2_VERSION=2.10.3 +export LIBXSLT_VERSION=1.1.37 +export STATIC_DEPS=true +export CFLAGS="$CFLAGS -fPIC" +python3 ./setup.py build --with-cython python3 ./setup.py install # Build fuzzers in $OUT.