commit 9156d96596c070365e938e817da2ebe7943409e3
parent e99b393602f3e25beb8bac608a94a3ffa914abcf
Author: Evgeny Grin (Karlson2k) <k2k@drgrin.dev>
Date: Thu, 24 Apr 2025 19:02:21 +0200
configure: disable -Winline flag
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
@@ -1241,6 +1241,17 @@ AS_VAR_IF([ac_cv_c_restrict],["no"],[],
[AC_DEFINE([HAVE_RESTRICT],[1],[Define to '1' if your compiler supports 'restrict' keyword])]
)
AC_C_INLINE
+AS_VAR_IF([ac_cv_c_inline],["no"],[],
+ [
+ # Check whether "enable" flag is supported as "disable" flag could be silently
+ # accepted when the compiled code itself does not produce any warnings
+ CFLAGS="${user_CFLAGS}"
+ MHD_CHECK_CC_CFLAG([-Winline],[CFLAGS_ac],
+ [MHD_CHECK_ADD_CC_CFLAG([-Wno-inline],[CFLAGS_ac])]
+ )
+ CFLAGS="${CFLAGS_ac} ${user_CFLAGS}"
+ ]
+)
AS_UNSET([errattr_CFLAGS])
CFLAGS="${user_CFLAGS}"
MHD_CHECK_CC_CFLAG([-Werror=attributes],[CFLAGS_ac],