configure: Don't add Xen's libs to LDFLAGS
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 21 Jan 2019 14:48:41 +0000 (14:48 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Mon, 4 Feb 2019 11:04:49 +0000 (11:04 +0000)
When Xen is detected via pkg-config, it isn't necessary to modify
LDFLAGS as modifying libs_softmmu is enough.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
configure

index ca1986125d7ef75caf3020f7980fa1dc424b2c3a..3d89870d9962e656a03b77cc387444cffb14a252 100755 (executable)
--- a/configure
+++ b/configure
@@ -2359,7 +2359,6 @@ if test "$xen" != "no" ; then
     fi
     QEMU_CFLAGS="$QEMU_CFLAGS $($pkg_config --cflags $xen_pc)"
     libs_softmmu="$($pkg_config --libs $xen_pc) $libs_softmmu"
-    LDFLAGS="$($pkg_config --libs $xen_pc) $LDFLAGS"
   else
 
     xen_libs="-lxenstore -lxenctrl -lxenguest"