mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Generate libvirt_qemu.def from libvirt_qemu.syms for MinGW builds
This commit is contained in:
parent
50e4908559
commit
177e17e462
@ -1873,6 +1873,7 @@ case "$host" in
|
||||
# Also set the symbol file to .def, so src/Makefile generates libvirt.def
|
||||
# from libvirt.syms and passes libvirt.def instead of libvirt.syms to the linker
|
||||
LIBVIRT_SYMBOL_FILE=libvirt.def
|
||||
LIBVIRT_QEMU_SYMBOL_FILE=libvirt_qemu.def
|
||||
# mingw's ld has the --version-script parameter, but it requires a .def file
|
||||
# instead to work properly, therefore clear --version-script here and use
|
||||
# -Wl, to pass the .def file to the linker
|
||||
|
1
src/.gitignore
vendored
1
src/.gitignore
vendored
@ -11,6 +11,7 @@ libvirt_parthelper
|
||||
libvirt_lxc
|
||||
libvirt.def
|
||||
libvirt.syms
|
||||
libvirt_qemu.def
|
||||
*.i
|
||||
*.s
|
||||
virt-aa-helper
|
||||
|
@ -1010,7 +1010,7 @@ EXTRA_DIST += \
|
||||
libvirt_daemon.syms \
|
||||
libvirt_nwfilter.syms
|
||||
|
||||
BUILT_SOURCES += libvirt.syms libvirt.def
|
||||
BUILT_SOURCES += libvirt.syms libvirt.def libvirt_qemu.def
|
||||
|
||||
libvirt.syms: libvirt_public.syms $(USED_SYM_FILES)
|
||||
$(AM_V_GEN)rm -f $@-tmp $@ ; \
|
||||
@ -1033,6 +1033,13 @@ libvirt.def: libvirt.syms
|
||||
chmod a-w $@-tmp && \
|
||||
mv $@-tmp libvirt.def
|
||||
|
||||
libvirt_qemu.def: $(srcdir)/libvirt_qemu.syms
|
||||
$(AM_V_GEN)rm -f -- $@-tmp $@ ; \
|
||||
printf 'EXPORTS\n' > $@-tmp && \
|
||||
sed -e '/^$$/d; /#/d; /:/d; /\}/d; /\*/d; /LIBVIRT_/d; s/[ \t]*\(.*\)\;/ \1/g' $^ >> $@-tmp && \
|
||||
chmod a-w $@-tmp && \
|
||||
mv $@-tmp libvirt_qemu.def
|
||||
|
||||
# Empty source list - it merely links a bunch of convenience libs together
|
||||
libvirt_la_SOURCES =
|
||||
libvirt_la_LDFLAGS = $(VERSION_SCRIPT_FLAGS)$(LIBVIRT_SYMBOL_FILE) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user