From 86f5130543c27faee5eb38740dca2cbe15e5507c Mon Sep 17 00:00:00 2001 From: Sean Kau Date: Wed, 3 Jul 2019 09:56:40 -0700 Subject: [PATCH] [ghostscript] Run ./autogen.sh instead of autoconf and add $ORIGIN to rpath (#2564) * Run ./autogen.sh instead of autoconf. * Add $ORIGIN to the rpath --- projects/ghostscript/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/ghostscript/build.sh b/projects/ghostscript/build.sh index cc44e63f8..b6f9a827f 100755 --- a/projects/ghostscript/build.sh +++ b/projects/ghostscript/build.sh @@ -42,7 +42,7 @@ CUPS_LDFLAGS=$($CUPSCONFIG --ldflags) CUPS_LIBS=$($CUPSCONFIG --image --libs) export CXXFLAGS="$CXXFLAGS $CUPS_CFLAGS" -autoconf +./autogen.sh CPPFLAGS="${CPPFLAGS:-} $CUPS_CFLAGS" ./configure \ --enable-freetype --enable-fontconfig \ --enable-cups --with-ijs --with-jbig2dec \ @@ -52,6 +52,7 @@ make -j$(nproc) libgs $CXX $CXXFLAGS $CUPS_LDFLAGS -std=c++11 -I. \ fuzz/gstoraster_fuzzer.cc \ -o "$OUT/gstoraster_fuzzer" \ + -Wl,-rpath='$ORIGIN' \ $CUPS_LIBS \ $LIB_FUZZING_ENGINE bin/gs.a