Commit 8f80892b by Jim Wilson

(install-common): Install c++ and g++ only if cc1plus built.

From-SVN: r3150
parent f45a4d6a
...@@ -1513,10 +1513,12 @@ install-common: native install-dir xgcc $(EXTRA_PARTS) ...@@ -1513,10 +1513,12 @@ install-common: native install-dir xgcc $(EXTRA_PARTS)
$(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \ $(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
chmod a-x $(libsubdir)/SYSCALLS.c.X; \ chmod a-x $(libsubdir)/SYSCALLS.c.X; \
fi fi
-rm -f $(bindir)/c++ -if [ -f cc1plus ] ; then \
$(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++ rm -f $(bindir)/c++ ; \
-rm -f $(bindir)/g++ $(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++ ; \
$(INSTALL_PROGRAM) $(srcdir)/g++ $(bindir)/g++ rm -f $(bindir)/g++ ; \
$(INSTALL_PROGRAM) $(srcdir)/g++ $(bindir)/g++ ; \
fi
-rm -f $(libsubdir)/cpp -rm -f $(libsubdir)/cpp
$(INSTALL_PROGRAM) cpp $(libsubdir)/cpp $(INSTALL_PROGRAM) cpp $(libsubdir)/cpp
......
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