Use $(LIB_FUZZING_ENGINE) in tests/ossfuzz/Makefile.

https://github.com/google/oss-fuzz/pull/3219#issuecomment-573751048

Thanks to Bhargava Shastry for sending the patch.
This commit is contained in:
Lasse Collin 2020-01-19 21:54:33 +02:00
parent 7136f1735c
commit cf2df0f05a

View File

@ -1,6 +1,6 @@
fuzz: fuzz.c fuzz: fuzz.c
$(CC) $(CFLAGS) -c fuzz.c -I ../../src/liblzma/api/ $(CC) $(CFLAGS) -c fuzz.c -I ../../src/liblzma/api/
$(CXX) $(CXXFLAGS) -lFuzzingEngine fuzz.o -o $(OUT)/fuzz \ $(CXX) $(CXXFLAGS) $(LIB_FUZZING_ENGINE) fuzz.o -o $(OUT)/fuzz \
../../src/liblzma/.libs/liblzma.a ../../src/liblzma/.libs/liblzma.a
clean: clean: