From: Timo Sirainen Date: Mon, 26 May 2025 07:57:41 +0000 (+0300) Subject: m4/dovecot.m4: Use AM_CFLAGS instead of EXTRA_CFLAGS with --enable-ubsan X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71029cb0af21f55e78c24bf6a2dc5957a2bc16fd;p=thirdparty%2Fdovecot%2Fcore.git m4/dovecot.m4: Use AM_CFLAGS instead of EXTRA_CFLAGS with --enable-ubsan Mainly to make it consistent with how all other build options are used. --- diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index cc4f8d4ae6..9a5ed8f28f 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -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])