mirror of https://gitee.com/openkylin/libvirt.git
build: fix qemuagenttest build with -O0 in fedora 19.
When building libvirt with -O0 flag in fedora 19, it will fail to generate qemuagenttest, a link error occurs like: ./.libs/libqemumonitortestutils.a(qemumonitortestutils.o): In function `qemuMonitorTestFree': libvirt/tests/qemumonitortestutils.c:346: undefined reference to `qemuMonitorClose' ./.libs/libqemumonitortestutils.a(qemumonitortestutils.o): In function `qemuMonitorTestNew': libvirt/tests/qemumonitortestutils.c:870: undefined reference to `qemuMonitorOpen' collect2: error: ld returned 1 exit status Fix it by listing libraries in the correct order to avoid lazy linkage. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
13c573740b
commit
a320730a88
|
@ -417,21 +417,21 @@ qemumonitorjsontest_SOURCES = \
|
|||
testutils.c testutils.h \
|
||||
testutilsqemu.c testutilsqemu.h \
|
||||
$(NULL)
|
||||
qemumonitorjsontest_LDADD = $(qemu_LDADDS) libqemumonitortestutils.la
|
||||
qemumonitorjsontest_LDADD = libqemumonitortestutils.la $(qemu_LDADDS)
|
||||
|
||||
qemuagenttest_SOURCES = \
|
||||
qemuagenttest.c \
|
||||
testutils.c testutils.h \
|
||||
testutilsqemu.c testutilsqemu.h \
|
||||
$(NULL)
|
||||
qemuagenttest_LDADD = $(qemu_LDADDS) libqemumonitortestutils.la
|
||||
qemuagenttest_LDADD = libqemumonitortestutils.la $(qemu_LDADDS)
|
||||
|
||||
qemuhotplugtest_SOURCES = \
|
||||
qemuhotplugtest.c \
|
||||
testutils.c testutils.h \
|
||||
testutilsqemu.c testutilsqemu.h \
|
||||
$(NULL)
|
||||
qemuhotplugtest_LDADD = $(qemu_LDADDS) libqemumonitortestutils.la
|
||||
qemuhotplugtest_LDADD = libqemumonitortestutils.la $(qemu_LDADDS)
|
||||
|
||||
domainsnapshotxml2xmltest_SOURCES = \
|
||||
domainsnapshotxml2xmltest.c testutilsqemu.c testutilsqemu.h \
|
||||
|
|
Loading…
Reference in New Issue