oss-fuzz: Fix CI oss-fuzz test compilation

This commit is contained in:
Jon Shallow authored and Jon Shallow committed 2026-01-21 17:04:10 +00:00
1 parent 37334b120f
commit e59df82300
3 files changed
+7 -5

No files matched your search

+2 -1
View File
@@ -256,7 +256,8 @@ jobs:
- name: build
run: |
make
make -C tests/oss-fuzz -f Makefile.ci check clean
make EXTRA_CFLAGS=-Werror -C tests/oss-fuzz -f Makefile.ci check clean
documentation:
runs-on: ubuntu-latest
steps:
+3 -2
View File
@@ -1573,9 +1573,10 @@ else
fi
mkdir -p include/coap$LIBCOAP_API_VERSION
head -19 cmake_coap_defines.h.in > include/coap$LIBCOAP_API_VERSION/coap_defines.h
DIR=`dirname $0`
head -19 $DIR/cmake_coap_defines.h.in > include/coap$LIBCOAP_API_VERSION/coap_defines.h
LT_TEMP=`grep -B2 " COAP_" coap_config.h >> include/coap$LIBCOAP_API_VERSION/coap_defines.h`
tail -2 cmake_coap_defines.h.in >> include/coap$LIBCOAP_API_VERSION/coap_defines.h
tail -2 $DIR/cmake_coap_defines.h.in >> include/coap$LIBCOAP_API_VERSION/coap_defines.h
if test "x$LT_TEMP" != "x" ; then
AC_MSG_ERROR([Unable to build coap_defines.h])
fi
+2 -2
View File
@@ -27,7 +27,7 @@ PROGRAMS:=$(patsubst %_target.o, %_fuzzer, $(OBJECTS))
all: $(PROGRAMS)
$(OUT)/%.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) -c $^ -o $@
$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_CFLAGS) -c $^ -o $@
%_fuzzer: %_target.o
$(LINK.cc) $(CXXFLAGS) $^ $(top_builddir)/.libs/$(libcoap).a $(LDFLAGS) $(LDLIBS) $(DTLS_LIBS) -o $@
@@ -35,4 +35,4 @@ $(OUT)/%.o: %.c
check: $(OBJECTS)
clean:
@-$(RM) $(OBJECTS) $(PROGRAMS)
@-$(RM) -f $(OBJECTS) $(PROGRAMS)