mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-10 01:17:44 +03:00
build-sys: use -f with ln -s
Parallel builds would sometimes try to recreate the link, and fail since 'ln -s' would refuse to overwrite.
This commit is contained in:
parent
3ae390ba02
commit
783162123d
@ -177,7 +177,7 @@ define move-to-rootlibdir
|
||||
$(MKDIR_P) $(DESTDIR)$(rootlibdir) && \
|
||||
so_img_name=$$(readlink $(DESTDIR)$(libdir)/$$libname) && \
|
||||
so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \
|
||||
ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
|
||||
$(LN_S) -f $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/$$libname && \
|
||||
mv $(DESTDIR)$(libdir)/$$libname.* $(DESTDIR)$(rootlibdir); \
|
||||
fi
|
||||
endef
|
||||
@ -3711,7 +3711,7 @@ man/%.html: man/%.xml man/custom-html.xsl
|
||||
$(XSLTPROC_PROCESS_HTML)
|
||||
|
||||
define html-alias
|
||||
$(AM_V_LN)$(LN_S) $(notdir $<) $@
|
||||
$(AM_V_LN)$(LN_S) -f $(notdir $<) $@
|
||||
endef
|
||||
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user