File tree 2 files changed +12
-1
lines changed 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
22
22
RUN git clone --depth 1 https://gitlab.freedesktop.org/freetype/freetype.git
23
23
RUN git clone --depth 1 https://github.com/mm2/Little-CMS.git
24
24
RUN 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
26
30
RUN git clone --depth 1 https://gitlab.freedesktop.org/fontconfig/fontconfig.git
27
31
RUN git clone --depth 1 https://gitlab.freedesktop.org/cairo/cairo.git
28
32
RUN 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/*
27
27
rm -rf $BUILD
28
28
mkdir -p $BUILD
29
29
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
+
30
37
# Install Boost headers
31
38
cd $SRC /
32
39
tar jxf boost_1_87_0.tar.bz2
You can’t perform that action at this time.
0 commit comments