From: David D. Zuhn Date: Mon, 3 Aug 1992 22:07:36 +0000 (+0000) Subject: fix installation problem which forced a relink of ld on 2nd and subsequent installation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b40f9c73f7fbe83e5278ad87b087d0ff1a4a11b1;p=binutils-gdb.git fix installation problem which forced a relink of ld on 2nd and subsequent installation --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 877ffed694b..b7bf2d0ab00 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,17 @@ +Mon Aug 3 14:58:19 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) + + * Makefile.in (install): install from ld.new, renaming during the + copy, or else the next 'make install' needs to re-link ld. + +Mon Jul 20 03:37:06 1992 D. V. Henkel-Wallace (gumby@cygnus.com) + + * configure.in: generalise hp recognition (from sef). + +Sat Jul 18 14:46:04 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) + + * configure.in: recognize bsd and hpux hppa configurations. + error messages echo to stderr, not stdout + Fri Jul 17 22:06:11 1992 K. Richard Pixley (rich@rtl.cygnus.com) * Makefile.dos, gld.1, ld.texinfo, ldemul.c, ldfile.c, ldlang.c, diff --git a/ld/Makefile.in b/ld/Makefile.in index 5ba465df955..e9c98b009bd 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -23,6 +23,7 @@ srcdir = . prefix = /usr/local program_prefix = +program_suffix = exec_prefix = $(prefix) bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib @@ -412,13 +413,12 @@ objdump:objdump.c .PHONY: install install: $(LD_PROG) - mv ld.new ld - -rm -f $(bindir)/$(program_prefix)ld - $(INSTALL_PROGRAM) ld $(bindir)/$(program_prefix)ld + -rm -f $(bindir)/$(program_prefix)ld$(program_suffix) + $(INSTALL_PROGRAM) ld.new $(bindir)/$(program_prefix)ld$(program_suffix) -rm -f $(tooldir)/ld - if [ -d $(tooldir) ]; then $(INSTALL_PROGRAM) ld $(tooldir)/ld; else true; fi - -rm -f $(man1dir)/$(program_prefix)ld.1 - $(INSTALL_DATA) $(srcdir)/gld.1 $(man1dir)/$(program_prefix)ld.1 + if [ -d $(tooldir) ]; then $(INSTALL_PROGRAM) ld.new $(tooldir)/ld; else true; fi + -rm -f $(man1dir)/$(program_prefix)ld$(program_suffix).1 + $(INSTALL_DATA) $(srcdir)/gld.1 $(man1dir)/$(program_prefix)ld$(program_suffix).1 install-info: info for i in ld.info* ; do \