Skip to content

Commit dc49029

Browse files
pacemaker: fix build (#14209)
1 parent 24ba8c5 commit dc49029

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

projects/pacemaker/build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,20 @@
1717

1818
export CFLAGS="$CFLAGS -Wno-deprecated-declarations"
1919
export 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

2235
for FUZZER_SOURCE in lib/*/fuzzers/*.c; do
2336
FUZZER="$(basename "$FUZZER_SOURCE" .c)"

0 commit comments

Comments
 (0)