Commit 6a10a1a7e5e47147d806e08da2a112124e87a3b4

Thomas de Grivel 2025-04-09T10:53:20

test have asan

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/config.subr b/config.subr
index 6c09431..8cd4a8d 100644
--- a/config.subr
+++ b/config.subr
@@ -175,6 +175,7 @@ config_asan() {
     OUT_C=".config_$NAME.c"
     OUT=".config_$NAME"
     echo "/* generated by configure */" > "$OUT_C"
+    echo "#include <stdlib.h>" >> "$OUT_C"
     echo "int main (void) { malloc(1); return 0; }" >> "$OUT_C"
     if $LIBTOOL --tag CC --mode link ${CC} ${CPPFLAGS} ${CFLAGS} \
                 -fsanitize=address -fno-omit-frame-pointer \