fix installation problem which forced a relink of ld on 2nd and subsequent installation

This commit is contained in:
David D. Zuhn 1992-08-03 22:07:36 +00:00
parent eafc6d85c6
commit b40f9c73f7
2 changed files with 20 additions and 6 deletions

View File

@ -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,

View File

@ -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 \