[libpsl] Install libidn2 from git and statically link the fuzz target against it (#680)

This commit is contained in:
Tim Rühsen 2017-06-21 00:03:06 +02:00 committed by Max Moroz
parent 2d577f5251
commit b9e125f9df
2 changed files with 10 additions and 3 deletions

View File

@ -22,9 +22,13 @@ RUN apt-get update && apt-get install -y \
autoconf \
automake \
libtool \
libidn2-0-dev \
libunistring-dev \
gtk-doc-tools
gtk-doc-tools \
gettext gengetopt curl gperf
RUN git clone --depth=1 https://gitlab.com/libidn/libidn2.git
RUN cd libidn2 && git submodule update --init
RUN cd libidn2 && ./bootstrap && ./configure --enable-static --disable-doc && make && make install
RUN git clone --depth=1 https://github.com/rockdaboot/libpsl.git
RUN cd libpsl && git submodule update --init

View File

@ -18,8 +18,11 @@
# avoid iconv() memleak on Ubuntu 16.04 image (breaks test suite)
export ASAN_OPTIONS=detect_leaks=0
# let 'make check' survive
export LD_LIBRARY_PATH=/usr/local/lib
./autogen.sh
./configure --enable-static --disable-gtk-doc --enable-runtime=libidn2 --enable-builtin=libidn2
LDFLAGS="-L/usr/local/lib" ./configure --enable-static --disable-gtk-doc --enable-runtime=libidn2 --enable-builtin=libidn2
make clean
make -j$(nproc)
make -j$(nproc) check