summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMarc-André Lureau2016-09-25 22:57:48 +0200
committerPaolo Bonzini2016-09-27 11:57:29 +0200
commit4a0588996a5848ce9550188d0f60642636815059 (patch)
tree42c12f820f3612e638bd9696611f95916f6f3051 /configure
parentbuild-sys: remove unused GLIB_CFLAGS (diff)
downloadqemu-4a0588996a5848ce9550188d0f60642636815059.tar.gz
qemu-4a0588996a5848ce9550188d0f60642636815059.tar.xz
qemu-4a0588996a5848ce9550188d0f60642636815059.zip
build-sys: put glib_cflags in QEMU_CFLAGS
This way, overriding CFLAGS on make command line keeps glib-cflags and doesn't break the build. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20160925205748.6280-2-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index c83160025e..5412d4f0b7 100755
--- a/configure
+++ b/configure
@@ -2933,7 +2933,7 @@ for i in $glib_modules; do
if $pkg_config --atleast-version=$glib_req_ver $i; then
glib_cflags=$($pkg_config --cflags $i)
glib_libs=$($pkg_config --libs $i)
- CFLAGS="$glib_cflags $CFLAGS"
+ QEMU_CFLAGS="$glib_cflags $QEMU_CFLAGS"
LIBS="$glib_libs $LIBS"
libs_qga="$glib_libs $libs_qga"
else