diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-06 19:05:56 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2021-09-07 12:25:25 +0300 |
commit | 12771c10bf019e830107de038559c6cd3891abe6 (patch) | |
tree | 874ff362511cd94636a18582090239a33da562ee | |
parent | 41b139afea16af9250a7f9ebe2e4e662d9584f25 (diff) | |
download | libmicrohttpd-12771c10bf019e830107de038559c6cd3891abe6.tar.gz libmicrohttpd-12771c10bf019e830107de038559c6cd3891abe6.zip |
configure: use CFLAGS only one time when testing for sanitizers
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2a8e4e39..d6175ec2 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -2637,8 +2637,9 @@ AS_VAR_IF([enable_sanitizers], ["yes"], | |||
2637 | ) | 2637 | ) |
2638 | AS_CASE(["$enabled_sanitizers"], [*undefined], | 2638 | AS_CASE(["$enabled_sanitizers"], [*undefined], |
2639 | [ | 2639 | [ |
2640 | CFLAGS="${new_CFLAGS}" | ||
2640 | AX_APPEND_COMPILE_FLAGS([-fsanitize=bounds-strict -fsanitize=local-bounds -fsanitize=implicit-conversion -fsanitize=nullability-arg], | 2641 | AX_APPEND_COMPILE_FLAGS([-fsanitize=bounds-strict -fsanitize=local-bounds -fsanitize=implicit-conversion -fsanitize=nullability-arg], |
2641 | [new_CFLAGS], [${new_CFLAGS}]) | 2642 | [new_CFLAGS], []) |
2642 | ] | 2643 | ] |
2643 | ) | 2644 | ) |
2644 | AC_CACHE_CHECK([for leak sanitizer], [mhd_cv_cc_sanitizer_leak], | 2645 | AC_CACHE_CHECK([for leak sanitizer], [mhd_cv_cc_sanitizer_leak], |