File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,11 @@ RUN git clone --depth 1 https://github.com/madler/zlib.git
2222RUN git clone --depth 1 https://gitlab.freedesktop.org/freetype/freetype.git
2323RUN git clone --depth 1 https://github.com/mm2/Little-CMS.git
2424RUN git clone --depth 1 https://github.com/uclouvain/openjpeg
25- RUN git clone --depth 1 https://github.com/glennrp/libpng.git
25+ # Pin libpng to avoid a build failure:
26+ # configure: pkgconfig directory is ${libdir}/pkgconfig
27+ # ./configure: line 10024: syntax error near unexpected token `)'
28+ # ./configure: line 10024: ` riscv*)'
29+ RUN git clone https://github.com/glennrp/libpng.git && cd libpng && git checkout b4800bae3379f1abf82359703c28e727b5df4135
2630RUN git clone --depth 1 https://gitlab.freedesktop.org/fontconfig/fontconfig.git
2731RUN git clone --depth 1 https://gitlab.freedesktop.org/cairo/cairo.git
2832RUN git clone --depth 1 --branch=5.15 git://code.qt.io/qt/qtbase.git
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ rm -rf $WORK/*
2727rm -rf $BUILD
2828mkdir -p $BUILD
2929
30+ # Temporarily Add -D_GNU_SOURCE to CFLAGS to fix freetype's dependence on GNU
31+ # extensions for dlsym to dynamically load harfbuzz. This feature
32+ # should potentially be disabled instead of fixing the compilation. But that is
33+ # not possible to do from the OSS-Fuzz repo :-)
34+ # See https://github.com/google/oss-fuzz/pull/13325 for more details.
35+ export CFLAGS=" $CFLAGS -D_GNU_SOURCE"
36+
3037# Install Boost headers
3138cd $SRC /
3239tar jxf boost_1_87_0.tar.bz2
You can’t perform that action at this time.
0 commit comments