[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:
obgm 2018-07-31 16:35:43 +02:00 committed by jonathanmetzman
parent 0e610d96ec
commit fa049083d3
1 changed files with 2 additions and 7 deletions

View File

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