]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
m4/dovecot.m4: Use AM_CFLAGS instead of EXTRA_CFLAGS with --enable-ubsan
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 26 May 2025 07:57:41 +0000 (10:57 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 27 May 2025 18:01:55 +0000 (18:01 +0000)
Mainly to make it consistent with how all other build options are used.

m4/dovecot.m4

index cc4f8d4ae60170f2862afeae5c9a8dd9a6a5c73e..9a5ed8f28fcbbbdbb9485806d7aed9056342e26a 100644 (file)
@@ -6,7 +6,7 @@ dnl This file is free software; the authors give
 dnl unlimited permission to copy and/or distribute it, with or without
 dnl modifications, as long as this notice is preserved.
 
-# serial 42
+# serial 43
 
 dnl
 dnl Check for support for D_FORTIFY_SOURCE=2
@@ -568,7 +568,7 @@ AC_DEFUN([DOVECOT_WANT_UBSAN], [
              AC_DEFINE([HAVE_FSANITIZE_NULLABILITY], [1], [Define if your compiler has -fsanitize=nullability])
      ])
      AS_IF([test "$san_flags" != "" ], [
-       EXTRA_CFLAGS="$EXTRA_CFLAGS $san_flags -U_FORTIFY_SOURCE -g -ggdb3 -O0 -fno-omit-frame-pointer"
+       AM_CFLAGS="$AM_CFLAGS $san_flags -U_FORTIFY_SOURCE -g -ggdb3 -O0 -fno-omit-frame-pointer"
        AC_DEFINE([HAVE_UNDEFINED_SANITIZER], [1], [Define if your compiler supports undefined sanitizers])
      ], [
        AC_MSG_ERROR([No undefined sanitizer support in your compiler])