summaryrefslogtreecommitdiff
path: root/gcc/fortran/Make-lang.in
diff options
context:
space:
mode:
authorbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-12 23:07:32 +0000
committerbrooks <brooks@138bc75d-0d04-0410-961f-82ee72b054a4>2013-09-12 23:07:32 +0000
commit955edcde3ac7724c996ceb230359fd09380ccac0 (patch)
treeaf6b2a5ed4697e45fd0e8b428f02102e25619f9c /gcc/fortran/Make-lang.in
parentb87a044e4ef32b61344e59193b31a44427c1cb7d (diff)
downloadgcc-955edcde3ac7724c996ceb230359fd09380ccac0.tar.gz
PR driver/42955
* Makefile.in: Do not install driver binaries in $(target)/bin. * cp/Make-lang.in: Likewise. * fortran/Make-lang.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202544 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/Make-lang.in')
-rw-r--r--gcc/fortran/Make-lang.in11
1 files changed, 3 insertions, 8 deletions
diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in
index ee704233bba..47deca61c6f 100644
--- a/gcc/fortran/Make-lang.in
+++ b/gcc/fortran/Make-lang.in
@@ -241,19 +241,14 @@ install-finclude-dir: installdirs
# Install hooks:
# f951 is installed elsewhere as part of $(COMPILERS).
-# Install the driver program as $(target)-gfortran
-# and also as either gfortran (if native) or $(tooldir)/bin/gfortran.
+# Install the driver program as $(target)-gfortran, and also as gfortran
+# if native.
fortran.install-common: install-finclude-dir installdirs
-if [ -f f951$(exeext) ] ; then \
rm -f $(DESTDIR)$(bindir)/$(GFORTRAN_INSTALL_NAME)$(exeext); \
$(INSTALL_PROGRAM) gfortran$(exeext) $(DESTDIR)$(bindir)/$(GFORTRAN_INSTALL_NAME)$(exeext); \
chmod a+x $(DESTDIR)$(bindir)/$(GFORTRAN_INSTALL_NAME)$(exeext); \
- if [ -f gfortran-cross$(exeext) ] ; then \
- if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \
- rm -f $(DESTDIR)$(gcc_tooldir)/bin/gfortran$(exeext); \
- $(INSTALL_PROGRAM) gfortran-cross$(exeext) $(DESTDIR)$(gcc_tooldir)/bin/gfortran$(exeext); \
- else true; fi; \
- else \
+ if [ ! -f gfortran-cross$(exeext) ] ; then \
rm -f $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
$(LN) $(DESTDIR)$(bindir)/$(GFORTRAN_INSTALL_NAME)$(exeext) $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
fi ; \