freeimage: only build required lib to enable FI (#12235)

Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
DavidKorczynski 2024-07-17 15:33:59 +01:00 committed by GitHub
parent ed2f5df351
commit 4558229051
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -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