[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/9] configure: do not clobber CFLAGS with --enable-fuzzing
From: |
Thomas Huth |
Subject: |
[PULL 2/9] configure: do not clobber CFLAGS with --enable-fuzzing |
Date: |
Mon, 13 Jul 2020 12:55:27 +0200 |
From: Alexander Bulekov <alxndr@bu.edu>
When configuring with --enable-fuzzing, we overwrote the CFLAGS
added by all the preceding checks. Instead of overwriting CFLAGS, append
the ones we need.
Fixes: adc28027ff ("fuzz: add configure flag --enable-fuzzing")
Reported-by: Li Qiang <liq3ea@163.com>
Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Message-Id: <20200708200104.21978-2-alxndr@bu.edu>
Tested-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Li Qiang <liq3ea@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index f59418f6de..69a89113f7 100755
--- a/configure
+++ b/configure
@@ -7926,7 +7926,7 @@ if test "$fuzzing" = "yes" ; then
if test "$have_fuzzer" = "yes"; then
FUZZ_LDFLAGS=" -fsanitize=address,fuzzer"
FUZZ_CFLAGS=" -fsanitize=address,fuzzer"
- CFLAGS=" -fsanitize=address,fuzzer-no-link"
+ CFLAGS="$CFLAGS -fsanitize=address,fuzzer-no-link"
else
error_exit "Your compiler doesn't support -fsanitize=address,fuzzer"
exit 1
--
2.18.1
- [PULL 0/9] Fuzzer, configure, gitlab and misc patches, Thomas Huth, 2020/07/13
- [PULL 1/9] configure: fix malloc check, Thomas Huth, 2020/07/13
- [PULL 2/9] configure: do not clobber CFLAGS with --enable-fuzzing,
Thomas Huth <=
- [PULL 3/9] fuzz: add missing header for rcu_enable_atfork, Thomas Huth, 2020/07/13
- [PULL 5/9] docs/devel/fuzzing: Fix bugs in documentation, Thomas Huth, 2020/07/13
- [PULL 6/9] Remove the CONFIG_PRAGMA_DIAGNOSTIC_AVAILABLE switch, Thomas Huth, 2020/07/13
- [PULL 4/9] tests/qtest/fuzz: Add missing spaces in description, Thomas Huth, 2020/07/13
- [PULL 7/9] disas/sh4: Add missing fallthrough annotations, Thomas Huth, 2020/07/13
- [PULL 8/9] GitLab Gating CI: introduce pipeline-status contrib script, Thomas Huth, 2020/07/13
- [PULL 9/9] docs/system/s390x: Improve the 3270 documentation, Thomas Huth, 2020/07/13
- Re: [PULL 0/9] Fuzzer, configure, gitlab and misc patches, no-reply, 2020/07/13
- Re: [PULL 0/9] Fuzzer, configure, gitlab and misc patches, Peter Maydell, 2020/07/13