mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 15:15:25 +00:00
libvirtd: Remove indirect linking
as described at http://wiki.debian.org/ToolChain/DSOLinking https://fedoraproject.org/wiki/UnderstandingDSOLinkChange otherwise the build fails on current Debian unstable with: CCLD libvirtd /usr/bin/ld: ../src/.libs/libvirt_driver_lxc.a(libvirt_driver_lxc_la-lxc_container.o): undefined reference to symbol 'capng_apply' /usr/bin/ld: note: 'capng_apply' is defined in DSO //usr/lib/libcap-ng.so.0 so try adding it to the linker command line CCLD libvirtd /usr/bin/ld: ../src/.libs/libvirt_driver_storage.a(libvirt_driver_storage_la-storage_backend.o): undefined reference to symbol 'fgetfilecon' /usr/bin/ld: note: 'fgetfilecon' is defined in DSO //lib/libselinux.so.1 so try adding it to the linker command line //lib/libselinux.so.1: could not read symbols: Invalid operation and similar errors.
This commit is contained in:
parent
83d35233a9
commit
ae1c5a936c
@ -703,7 +703,8 @@ endif
|
||||
libvirt_driver_qemu_la_CFLAGS = $(NUMACTL_CFLAGS) \
|
||||
-I@top_srcdir@/src/conf $(AM_CFLAGS)
|
||||
libvirt_driver_qemu_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libvirt_driver_qemu_la_LIBADD = $(NUMACTL_LIBS)
|
||||
libvirt_driver_qemu_la_LIBADD = $(NUMACTL_LIBS) \
|
||||
$(CAPNG_LIBS)
|
||||
if WITH_DRIVER_MODULES
|
||||
libvirt_driver_qemu_la_LIBADD += ../gnulib/lib/libgnu.la
|
||||
libvirt_driver_qemu_la_LDFLAGS += -module -avoid-version
|
||||
@ -730,8 +731,15 @@ noinst_LTLIBRARIES += libvirt_driver_lxc.la
|
||||
endif
|
||||
libvirt_driver_lxc_la_CFLAGS = \
|
||||
-I@top_srcdir@/src/conf $(AM_CFLAGS)
|
||||
libvirt_driver_lxc_la_LIBADD = $(CAPNG_LIBS)
|
||||
if WITH_SECDRIVER_SELINUX
|
||||
libvirt_driver_lxc_la_LIBADD += $(SELINUX_LIBS)
|
||||
endif
|
||||
if WITH_SECDRIVER_APPARMOR
|
||||
libvirt_driver_lxc_la_LIBADD += $(APPARMOR_LIBS)
|
||||
endif
|
||||
if WITH_DRIVER_MODULES
|
||||
libvirt_driver_lxc_la_LIBADD = ../gnulib/lib/libgnu.la
|
||||
libvirt_driver_lxc_la_LIBADD += ../gnulib/lib/libgnu.la
|
||||
libvirt_driver_lxc_la_LDFLAGS = -module -avoid-version $(AM_LDFLAGS)
|
||||
endif
|
||||
libvirt_driver_lxc_la_SOURCES = $(LXC_DRIVER_SOURCES)
|
||||
@ -870,6 +878,12 @@ libvirt_driver_storage_la_CFLAGS = \
|
||||
-I@top_srcdir@/src/conf $(AM_CFLAGS)
|
||||
libvirt_driver_storage_la_LDFLAGS = $(AM_LDFLAGS)
|
||||
libvirt_driver_storage_la_LIBADD =
|
||||
if WITH_SECDRIVER_SELINUX
|
||||
libvirt_driver_storage_la_LIBADD += $(SELINUX_LIBS)
|
||||
endif
|
||||
if WITH_SECDRIVER_APPARMOR
|
||||
libvirt_driver_storage_la_LIBADD += $(APPARMOR_LIBS)
|
||||
endif
|
||||
if WITH_STORAGE_DIR
|
||||
if WITH_DRIVER_MODULES
|
||||
mod_LTLIBRARIES += libvirt_driver_storage.la
|
||||
|
Loading…
Reference in New Issue
Block a user