Commit 97ac9064 by Ian Lance Taylor

Install as $(target)-gcc, not gcc-$(target)

From-SVN: r4054
parent c49c4803
...@@ -1551,10 +1551,10 @@ install-common: native install-dir xgcc $(EXTRA_PARTS) ...@@ -1551,10 +1551,10 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
rm -f $(libsubdir)/specs; \ rm -f $(libsubdir)/specs; \
$(INSTALL_DATA) specs $(libsubdir)/specs; \ $(INSTALL_DATA) specs $(libsubdir)/specs; \
fi fi
# Install the driver program as gcc-$(target) # Install the driver program as $(target)-gcc
# and also as either gcc (if native) or $(tooldir)/bin/gcc. # and also as either gcc (if native) or $(tooldir)/bin/gcc.
-if [ -f gcc-cross ] ; then \ -if [ -f gcc-cross ] ; then \
$(INSTALL_PROGRAM) gcc-cross $(bindir)/gcc-$(target); \ $(INSTALL_PROGRAM) gcc-cross $(bindir)/$(target)-gcc; \
if [ -d $(tooldir)/bin/. ] ; then \ if [ -d $(tooldir)/bin/. ] ; then \
rm -f $(tooldir)/bin/gcc; \ rm -f $(tooldir)/bin/gcc; \
$(INSTALL_PROGRAM) gcc-cross $(tooldir)/bin/gcc; \ $(INSTALL_PROGRAM) gcc-cross $(tooldir)/bin/gcc; \
...@@ -1562,9 +1562,9 @@ install-common: native install-dir xgcc $(EXTRA_PARTS) ...@@ -1562,9 +1562,9 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
else \ else \
rm -f $(bindir)/gcc; \ rm -f $(bindir)/gcc; \
$(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \ $(INSTALL_PROGRAM) xgcc $(bindir)/gcc; \
rm -f $(bindir)/gcc-$(target)-1; \ rm -f $(bindir)/$(target)-gcc-1; \
ln $(bindir)/gcc $(bindir)/gcc-$(target)-1; \ ln $(bindir)/gcc $(bindir)/$(target)-gcc-1; \
mv $(bindir)/gcc-$(target)-1 $(bindir)/gcc-$(target); \ mv $(bindir)/$(target)-gcc-1 $(bindir)/$(target)-gcc; \
fi fi
# Install protoize if it was compiled. # Install protoize if it was compiled.
-if [ -f protoize ]; \ -if [ -f protoize ]; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment