aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFam Zheng <famz@redhat.com>2017-09-07 16:42:30 +0800
committerFam Zheng <famz@redhat.com>2017-09-22 10:20:34 +0800
commit392fb6435173990e109bb0b58847f5413e03bf3a (patch)
tree9161858193d1c4495af2543ef1c4c75fbd8a838b
parent8eca288989d5fa76373e1892fd08c58443742d5e (diff)
downloadqemu-392fb6435173990e109bb0b58847f5413e03bf3a.zip
qemu-392fb6435173990e109bb0b58847f5413e03bf3a.tar.gz
qemu-392fb6435173990e109bb0b58847f5413e03bf3a.tar.bz2
buildsys: Move rdma libs to per object
Signed-off-by: Fam Zheng <famz@redhat.com> Message-Id: <20170907084230.26493-1-famz@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Fam Zheng <famz@redhat.com>
-rwxr-xr-xconfigure2
-rw-r--r--migration/Makefile.objs1
2 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 9ffebee..84cdb2b 100755
--- a/configure
+++ b/configure
@@ -2800,7 +2800,6 @@ EOF
rdma_libs="-lrdmacm -libverbs"
if compile_prog "" "$rdma_libs" ; then
rdma="yes"
- libs_softmmu="$libs_softmmu $rdma_libs"
else
if test "$rdma" = "yes" ; then
error_exit \
@@ -5988,6 +5987,7 @@ echo "CONFIG_TRACE_FILE=$trace_file" >> $config_host_mak
if test "$rdma" = "yes" ; then
echo "CONFIG_RDMA=y" >> $config_host_mak
+ echo "RDMA_LIBS=$rdma_libs" >> $config_host_mak
fi
if test "$have_rtnetlink" = "yes" ; then
diff --git a/migration/Makefile.objs b/migration/Makefile.objs
index 1c7770d..99e0380 100644
--- a/migration/Makefile.objs
+++ b/migration/Makefile.objs
@@ -11,3 +11,4 @@ common-obj-$(CONFIG_RDMA) += rdma.o
common-obj-$(CONFIG_LIVE_BLOCK_MIGRATION) += block.o
+rdma.o-libs := $(RDMA_LIBS)