mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-02 09:55:18 +00:00
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: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
9a5bafd329
commit
82dd011dbb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user