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)
$(INSTALL_DATA) SYSCALLS.c.X $(libsubdir)/SYSCALLS.c.X; \
chmod a-x $(libsubdir)/SYSCALLS.c.X; \
fi
-rm -f $(bindir)/c++
$(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++
-rm -f $(bindir)/g++
$(INSTALL_PROGRAM) $(srcdir)/g++ $(bindir)/g++
-if [ -f cc1plus ] ; then \
rm -f $(bindir)/c++ ; \
$(INSTALL_PROGRAM) $(srcdir)/c++ $(bindir)/c++ ; \
rm -f $(bindir)/g++ ; \
$(INSTALL_PROGRAM) $(srcdir)/g++ $(bindir)/g++ ; \
fi
-rm -f $(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