提交 82dd011d 编写于 作者: D Daniel P. Berrangé

qemu: fix linking virt-qemu-run on some distros

Debian/Ubuntu linkers are more strict that other distros requiring glib
to be linked explicitly.

macOS needs -export-dynamic instead of -Wl,--export-dynamic
Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
上级 9a5bafd3
......@@ -253,6 +253,9 @@ bin_PROGRAMS += virt-qemu-run
virt_qemu_run_SOURCES = $(QEMU_SHIM_SOURCES)
virt_qemu_run_LDADD = libvirt.la
virt_qemu_run_LDFLAGS = -Wl,--export-dynamic
virt_qemu_run_LDADD = \
libvirt.la \
$(GLIB_LIBS) \
$(NULL)
virt_qemu_run_LDFLAGS = -export-dynamic
endif WITH_QEMU
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册