From fa049083d3a0231e9c9749257346fb8b70899037 Mon Sep 17 00:00:00 2001 From: obgm Date: Tue, 31 Jul 2018 16:35:43 +0200 Subject: [PATCH] [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. --- projects/libcoap/build.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/projects/libcoap/build.sh b/projects/libcoap/build.sh index e92862c7f..1c9887334 100755 --- a/projects/libcoap/build.sh +++ b/projects/libcoap/build.sh @@ -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