Commit ae14040d282daffc4e501388490d91fef34d9dc5

Thomas de Grivel 2025-04-09T10:52:22

test have asan

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/config.subr b/config.subr
index 8be8ce2..6c09431 100644
--- a/config.subr
+++ b/config.subr
@@ -177,7 +177,7 @@ config_asan() {
     echo "/* generated by configure */" > "$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 \
+                -fsanitize=address -fno-omit-frame-pointer \
                 "$OUT_C" ${LIBS} -lasan -o "$OUT"; then
         eval "HAVE_$NAME=true"
         echo "HAVE_$NAME = true" >> ${CONFIG_MK}