gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] 02/03: configure: fixed order of compiler flags, fixed c


From: gnunet
Subject: [libmicrohttpd] 02/03: configure: fixed order of compiler flags, fixed check
Date: Sat, 19 Mar 2022 13:21:53 +0100

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 1061dc30c708c41c1c40c13c5e81f0f65ddd96ef
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sat Mar 19 14:59:11 2022 +0300

    configure: fixed order of compiler flags, fixed check
---
 configure.ac | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1ecdc614..1887c2b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3316,14 +3316,13 @@ int main(void)
        )
        AS_VAR_IF([enable_san_address], ["yes"],
          [
-           AS_VAR_IF([mhd_cv_cc_sanitizer_address],["yes"],
-             [
-               AX_APPEND_FLAG([-D_FORTIFY_SOURCE=0], [san_CFLAGS])
-               CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}"
-               AX_APPEND_COMPILE_FLAGS([-Wp,-U_FORTIFY_SOURCE], [san_CFLAGS])
-             ],
-             [AC_MSG_WARN([$CC does not support address sanitizer])]
-           )
+           CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}"
+           AX_APPEND_COMPILE_FLAGS([-Wp,-U_FORTIFY_SOURCE], [san_CFLAGS])
+           AX_APPEND_FLAG([-D_FORTIFY_SOURCE=0], [san_CFLAGS])
+         ],
+         [
+           AS_CASE([$enable_sanitizers], [auto|auto-fallback],
+             [AC_MSG_WARN([$CC does not support address sanitizer])])
          ]
        )
        CFLAGS="${CFLAGS_ac} ${san_FLAGS} ${san_CFLAGS} ${user_CFLAGS}"

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]