1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

build: Use $(LN_S) safely

The autoconf documentation recommends to always use this
construct when creating symbolic links with $(LN_S) to avoid
unexpected behavior.
This commit is contained in:
Andrea Bolognani 2016-04-20 19:24:22 +02:00
parent ce8379eedc
commit ed5c929777
2 changed files with 4 additions and 4 deletions

View File

@ -3078,8 +3078,8 @@ if WITH_NETWORK
cp $(DESTDIR)$(confdir)/qemu/networks/default.xml.t \ cp $(DESTDIR)$(confdir)/qemu/networks/default.xml.t \
$(DESTDIR)$(confdir)/qemu/networks/default.xml && \ $(DESTDIR)$(confdir)/qemu/networks/default.xml && \
rm $(DESTDIR)$(confdir)/qemu/networks/default.xml.t; } rm $(DESTDIR)$(confdir)/qemu/networks/default.xml.t; }
$(LN_S) -f ../default.xml \ ( cd $(DESTDIR)$(confdir)/qemu/networks/autostart && \
$(DESTDIR)$(confdir)/qemu/networks/autostart/default.xml $(LN_S) -f ../default.xml default.xml )
endif WITH_NETWORK endif WITH_NETWORK
uninstall-local:: uninstall-init uninstall-systemd uninstall-local:: uninstall-init uninstall-systemd

View File

@ -423,8 +423,8 @@ LIBVIRT_NSS_SYMBOL_FILE = \
NSS_SO_VER = 1 NSS_SO_VER = 1
install-exec-hook: install-exec-hook:
cd $(DESTDIR)$(libdir) && \ ( cd $(DESTDIR)$(libdir) && \
$(LN_S) -f libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER) $(LN_S) -f libnss_libvirt.so.$(NSS_SO_VER) nss_libvirt.so.$(NSS_SO_VER) )
uninstall-local: uninstall-local:
-rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER) -rm -f $(DESTDIR)$(libdir)/nss_libvirt.so.$(NSS_SO_VER)