From 5cdea2ac2057724931961e408000aba444e43aa6 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Fri, 26 Jun 1992 22:42:15 +0000 Subject: Install into the right place for cross --- ld/Makefile.in | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'ld') diff --git a/ld/Makefile.in b/ld/Makefile.in index ee7bcd0..5ba465d 100644 --- a/ld/Makefile.in +++ b/ld/Makefile.in @@ -26,8 +26,7 @@ program_prefix = exec_prefix = $(prefix) bindir = $(exec_prefix)/bin libdir = $(exec_prefix)/lib -tooldir = $(libdir) - +tooldir = $(bindir) datadir = $(prefix)/lib mandir = $(prefix)/man man1dir = $(mandir)/man1 @@ -85,6 +84,11 @@ TEXI2ROFF=texi2roff # Which roff program to use to generate index for texi2roff'd doc ROFF = groff +#stuff for self hosting (can be overridden in config file). +HOSTING_CRT0=/lib/crt0.o +HOSTING_LIBS=`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else echo $(libdir)/libgcc.a; fi` -lc +HOSTING_EMU=LDEMULATION=$(EMUL); export LDEMULATION + ### Host, target, and site specific Makefile fragments come in here. ### @@ -412,7 +416,7 @@ install: $(LD_PROG) -rm -f $(bindir)/$(program_prefix)ld $(INSTALL_PROGRAM) ld $(bindir)/$(program_prefix)ld -rm -f $(tooldir)/ld - $(INSTALL_PROGRAM) ld $(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 -- cgit v1.1