summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorFam Zheng2017-09-07 10:29:17 +0200
committerFam Zheng2017-09-22 04:20:34 +0200
commitb878b652df08360e5440710acf987d6b6ab945b7 (patch)
tree35914df5f7242aa3ba22e43d778745a11dd716bd /configure
parentbuildsys: Move libcacard cflags/libs to per object (diff)
downloadqemu-b878b652df08360e5440710acf987d6b6ab945b7.tar.gz
qemu-b878b652df08360e5440710acf987d6b6ab945b7.tar.xz
qemu-b878b652df08360e5440710acf987d6b6ab945b7.zip
buildsys: Move libusb cflags/libs to per object
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170907082918.7299-9-famz@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index c5d5f02c08..a6204651d5 100755
--- a/configure
+++ b/configure
@@ -4221,8 +4221,6 @@ if test "$libusb" != "no" ; then
libusb="yes"
libusb_cflags=$($pkg_config --cflags libusb-1.0)
libusb_libs=$($pkg_config --libs libusb-1.0)
- QEMU_CFLAGS="$QEMU_CFLAGS $libusb_cflags"
- libs_softmmu="$libs_softmmu $libusb_libs"
else
if test "$libusb" = "yes"; then
feature_not_found "libusb" "Install libusb devel >= 1.0.13"
@@ -5789,6 +5787,8 @@ fi
if test "$libusb" = "yes" ; then
echo "CONFIG_USB_LIBUSB=y" >> $config_host_mak
+ echo "LIBUSB_CFLAGS=$libusb_cflags" >> $config_host_mak
+ echo "LIBUSB_LIBS=$libusb_libs" >> $config_host_mak
fi
if test "$usb_redir" = "yes" ; then