|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [qemu-xen staging] configure: do not clobber CFLAGS with --enable-fuzzing
commit 0ab6c2384ccae8968517f6883897509cd5f51a40
Author: Alexander Bulekov <alxndr@xxxxxx>
AuthorDate: Wed Jul 8 16:01:03 2020 -0400
Commit: Thomas Huth <thuth@xxxxxxxxxx>
CommitDate: Mon Jul 13 11:40:52 2020 +0200
configure: do not clobber CFLAGS with --enable-fuzzing
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@xxxxxxx>
Signed-off-by: Alexander Bulekov <alxndr@xxxxxx>
Message-Id: <20200708200104.21978-2-alxndr@xxxxxx>
Tested-by: Li Qiang <liq3ea@xxxxxxxxx>
Reviewed-by: Li Qiang <liq3ea@xxxxxxxxx>
Reviewed-by: Philippe Mathieu-Daudé <philmd@xxxxxxxxxx>
Signed-off-by: Thomas Huth <thuth@xxxxxxxxxx>
---
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
--
generated by git-patchbot for /home/xen/git/qemu-xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |