]> git.ipfire.org Git - thirdparty/qemu.git/commit - Makefile
build-sys: fix building with make CFLAGS=.. argument
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Fri, 5 Aug 2016 08:23:46 +0000 (12:23 +0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 9 Aug 2016 20:57:36 +0000 (22:57 +0200)
commita9c87304b76d1d61687d585516abb4c6e0ae809e
tree8f905531a471b18efe4eafb9c7437a47dc669220
parent7f2569246c81d5f88e74c142b8fbdc0ee601bffe
build-sys: fix building with make CFLAGS=.. argument

When calling make with a CFLAGS=.. argument, the -g/-O filter is not
applied, which may result with build failure with ASAN for example. It
could be solved with an 'override' directive on CFLAGS, but that would
actually prevent setting different CFLAGS manually.

Instead, filter the CFLAGS argument from the top-level Makefile (so
you could still call make with a different CFLAGS argument on a
rom/Makefile manually)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20160805082421.21994-2-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Makefile
pc-bios/optionrom/Makefile