File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1717
1818export CFLAGS=" $CFLAGS -Wno-deprecated-declarations"
1919export CXXFLAGS=" $CXXFLAGS -Wno-deprecated-declarations"
20- make -j$( nproc) build
20+ # Run autogen first
21+ cd $SRC /pacemaker
22+ test -e configure && test -e libltdl || ./autogen.sh
23+
24+ # Patch configure to skip the strerror AC_RUN_IFELSE check that fails with sanitizers
25+ # This check tries to run a test program which doesn't work with ASAN
26+ if [ -f configure ]; then
27+ sed -i ' s/as_fn_error $? "strerror() is not C99-compliant" "$LINENO" 5/echo "Assuming strerror is C99-compliant for fuzzing build"/g' configure
28+ fi
29+
30+ # Now run configure if needed, then build
31+ test -e Makefile || ./configure
32+
33+ make -j$( nproc) core
2134
2235for FUZZER_SOURCE in lib/* /fuzzers/* .c; do
2336 FUZZER=" $( basename " $FUZZER_SOURCE " .c) "
You can’t perform that action at this time.
0 commit comments