提交 ed5c9297 编写于 作者: A Andrea Bolognani

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.
上级 ce8379ee
...@@ -3078,8 +3078,8 @@ if WITH_NETWORK ...@@ -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
......
...@@ -423,8 +423,8 @@ LIBVIRT_NSS_SYMBOL_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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册