aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-06-26 22:42:15 +0000
committerSteve Chamberlain <sac@cygnus>1992-06-26 22:42:15 +0000
commit5cdea2ac2057724931961e408000aba444e43aa6 (patch)
treebfc53b2a340e06f1864ac14087bd09f7732c5566 /ld
parentb951b38d00cbe708eb5220e08173816f76518c36 (diff)
downloadgdb-5cdea2ac2057724931961e408000aba444e43aa6.zip
gdb-5cdea2ac2057724931961e408000aba444e43aa6.tar.gz
gdb-5cdea2ac2057724931961e408000aba444e43aa6.tar.bz2
Install into the right place for cross
Diffstat (limited to 'ld')
-rw-r--r--ld/Makefile.in10
1 files changed, 7 insertions, 3 deletions
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