aboutsummaryrefslogtreecommitdiff
path: root/Makerules
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-16 21:19:13 +0000
committerRoland McGrath <roland@gnu.org>1996-07-16 21:19:13 +0000
commitf36f8dcf1cf07c66e9f7a3eba408e2b0af12d717 (patch)
tree93cf1bcdcb0c5b31f1b731184b32471443b9c287 /Makerules
parentec42724d6970b2d3e9007de0841394856e84d287 (diff)
downloadglibc-f36f8dcf1cf07c66e9f7a3eba408e2b0af12d717.zip
glibc-f36f8dcf1cf07c66e9f7a3eba408e2b0af12d717.tar.gz
glibc-f36f8dcf1cf07c66e9f7a3eba408e2b0af12d717.tar.bz2
Tue Jul 16 16:43:58 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* sysdeps/mach/hurd/mmap.c: Use same inheritance arg in second vm_map call as in first. * Makerules (make-link): Install the new link with atomic mv -f in case ln itself requires the library being installed.
Diffstat (limited to 'Makerules')
-rw-r--r--Makerules4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makerules b/Makerules
index cb6b354..0554f85 100644
--- a/Makerules
+++ b/Makerules
@@ -583,7 +583,9 @@ versioned := $(strip $(foreach so,$(install-lib.so),\
$(addprefix $(libdir)/,$(filter-out $(versioned),$(install-lib.so))): \
$(libdir)/%.so: $(objpfx)%.so; $(do-install-program)
-make-link = cd $(@D); rm -f $(@F); $(LN_S) $(<F) $(@F)
+define make-link
+cd $(@D); rm -f $(@F).new; $(LN_S) $(<F) $(@F).new; mv -f $(@F).new $(@F)
+endef
ifdef libc.so-version
# For a library specified to be version N, install three files: