From 4558229051fc503445d10b8567c665a77c99d1e6 Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Wed, 17 Jul 2024 15:33:59 +0100 Subject: [PATCH] freeimage: only build required lib to enable FI (#12235) Signed-off-by: David Korczynski --- projects/freeimage/build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/projects/freeimage/build.sh b/projects/freeimage/build.sh index a94eb13f4..c08149f51 100755 --- a/projects/freeimage/build.sh +++ b/projects/freeimage/build.sh @@ -25,12 +25,12 @@ export CXXFLAGS="$CXXFLAGS -std=c++14" # Avoid C++17 build error dos2unix ./image/encode/strenc.c patch -p1 -i $SRC/jxrlib_tmpnam.patch ) -make LIBRARIES=-lc++ -j$(nproc) +make LIBRARIES=-lc++ -j$(nproc) -f Makefile.gnu libfreeimage.a -INSTALL_DIR="$PWD/Dist" +INSTALL_DIR=$PWD cd $SRC -$CXX $CXXFLAGS -I${INSTALL_DIR}/ $LIB_FUZZING_ENGINE \ +$CXX $CXXFLAGS -I${INSTALL_DIR}/ -I${INSTALL_DIR}/Source $LIB_FUZZING_ENGINE \ load_from_memory_fuzzer.cc ${INSTALL_DIR}/libfreeimage.a \ -o $OUT/load_from_memory_fuzzer