gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 03/04: configure: reset CFLAGS when testing for sanitize


From: gnunet
Subject: [libmicrohttpd] 03/04: configure: reset CFLAGS when testing for sanitizers
Date: Tue, 07 Sep 2021 11:27:55 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit be630f9d6b2ebed570475c512dca7d986b95fc6d
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Mon Sep 6 19:57:31 2021 +0300

    configure: reset CFLAGS when testing for sanitizers
---
 configure.ac | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index d6175ec2..92a6aaf8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2638,7 +2638,7 @@ AS_VAR_IF([enable_sanitizers], ["yes"],
        AS_CASE(["$enabled_sanitizers"], [*undefined],
          [
            CFLAGS="${new_CFLAGS}"
-           AX_APPEND_COMPILE_FLAGS([-fsanitize=bounds-strict 
-fsanitize=local-bounds -fsanitize=implicit-conversion 
-fsanitize=nullability-arg],
+           AX_APPEND_LINK_FLAGS([-fsanitize=bounds-strict 
-fsanitize=local-bounds -fsanitize=implicit-conversion 
-fsanitize=nullability-arg],
              [new_CFLAGS], [])
          ]
        )
@@ -2655,17 +2655,18 @@ AS_VAR_IF([enable_sanitizers], ["yes"],
            enabled_sanitizers="${enabled_sanitizers}${enabled_sanitizers:+, 
}leak"
          ]
        )
-
        AS_IF([test -z "${enabled_sanitizers}"],
          [AC_MSG_ERROR([cannot find any sanitizer supported by $CC])])
        AS_VAR_IF([mhd_cv_cc_sanitizer_address],["yes"],
          [
            new_CFLAGS="${new_CFLAGS} -D_FORTIFY_SOURCE=0"
+           CFLAGS="${new_CFLAGS}"
            AX_APPEND_COMPILE_FLAGS([-Wp,-U_FORTIFY_SOURCE], [new_CFLAGS])
          ],
          [AC_MSG_WARN([$CC does not support address sanitizer])]
        )
        # Always stop on error
+       CFLAGS="${new_CFLAGS}"
        AX_APPEND_COMPILE_FLAGS([-fno-sanitize-recover=all], [new_CFLAGS])
        # Get better output for sanitizers error reporting
        AX_APPEND_COMPILE_FLAGS([-fno-omit-frame-pointer -fno-common 
-fno-optimize-sibling-calls],

-- 
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]