mirror of https://github.com/google/oss-fuzz.git
freeimage: only build required lib to enable FI (#12235)
Signed-off-by: David Korczynski <david@adalogics.com>
This commit is contained in:
parent
ed2f5df351
commit
4558229051
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue