mirror of https://github.com/google/oss-fuzz.git
[libcoap]: build.sh: invoke Makefile.oss-fuzz for building (#1676)
This change calls libcoap's Makefile for building libcoap applications with proper build flags set.
This commit is contained in:
parent
0e610d96ec
commit
fa049083d3
|
@ -18,10 +18,5 @@
|
|||
./autogen.sh && ./configure --disable-doxygen --disable-manpages \
|
||||
&& make -j$(nproc)
|
||||
|
||||
for file in $SRC/libcoap/tests/oss-fuzz/*target.c; do
|
||||
b=$(basename $file _target.c)
|
||||
$CC $CFLAGS -c $file -I include/coap -o $OUT/${b}_target.o
|
||||
$CXX $CXXFLAGS $OUT/${b}_target.o .libs/libcoap-2.a \
|
||||
-lFuzzingEngine -o $OUT/${b}_fuzzer
|
||||
rm -f $OUT/${b}_target.o
|
||||
done
|
||||
# build all fuzzer targets
|
||||
make -C tests/oss-fuzz -f Makefile.oss-fuzz
|
||||
|
|
Loading…
Reference in New Issue