]> Git Repo - qemu.git/commitdiff
configure: Don't build ivshmem tools unless CONFIG_IVSHMEM is set
authorKamil Rytarowski <[email protected]>
Fri, 14 Jul 2017 08:33:45 +0000 (09:33 +0100)
committerPeter Maydell <[email protected]>
Thu, 20 Jul 2017 13:58:19 +0000 (14:58 +0100)
Don't try to build the ivshmem-server and ivshmem-client tools unless
CONFIG_IVSHMEM is set.

This fixes in passing a build bug on NetBSD, which fails to build the
ivshmem tools because they use shm_open() and on NetBSD that requires
linking against -lrt.

Signed-off-by: Kamil Rytarowski <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
Message-id: 1500021225[email protected]
[PMM: moved some code into earlier patches; minor bugfixes;
 added commit message]
Signed-off-by: Peter Maydell <[email protected]>
Makefile
Makefile.objs
configure

index 38814f9a61296e46a95c577dae53144a0647c5d2..ef721480eb4b520cceab266040c2bfec2da6a207 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -470,10 +470,12 @@ ifneq ($(EXESUF),)
 qemu-ga: qemu-ga$(EXESUF) $(QGA_VSS_PROVIDER) $(QEMU_GA_MSI)
 endif
 
+ifdef CONFIG_IVSHMEM
 ivshmem-client$(EXESUF): $(ivshmem-client-obj-y) $(COMMON_LDADDS)
        $(call LINK, $^)
 ivshmem-server$(EXESUF): $(ivshmem-server-obj-y) $(COMMON_LDADDS)
        $(call LINK, $^)
+endif
 vhost-user-scsi$(EXESUF): $(vhost-user-scsi-obj-y)
        $(call LINK, $^)
 
index bfd5a6ceb1cc50226bfdfc0705684032fe9690a6..24a4ea08b829af8fed60e6f8f5734929df332980 100644 (file)
@@ -107,8 +107,8 @@ qga-vss-dll-obj-y = qga/
 
 ######################################################################
 # contrib
-ivshmem-client-obj-y = contrib/ivshmem-client/
-ivshmem-server-obj-y = contrib/ivshmem-server/
+ivshmem-client-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-client/
+ivshmem-server-obj-$(CONFIG_IVSHMEM) = contrib/ivshmem-server/
 libvhost-user-obj-y = contrib/libvhost-user/
 vhost-user-scsi.o-cflags := $(LIBISCSI_CFLAGS)
 vhost-user-scsi.o-libs := $(LIBISCSI_LIBS)
index dbd131318f84fdd995996f761474c7a64af96fef..c573a777fc3c933a18b84ed284bd4850719ac557 100755 (executable)
--- a/configure
+++ b/configure
@@ -5048,6 +5048,8 @@ if test "$want_tools" = "yes" ; then
   tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools"
   if [ "$linux" = "yes" -o "$bsd" = "yes" -o "$solaris" = "yes" ] ; then
     tools="qemu-nbd\$(EXESUF) $tools"
+  fi
+  if [ "$ivshmem" = "yes" ]; then
     tools="ivshmem-client\$(EXESUF) ivshmem-server\$(EXESUF) $tools"
   fi
 fi
This page took 0.03665 seconds and 4 git commands to generate.