This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR21143
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 21 Apr 2005 18:37:11 +0200
- Subject: [PATCH] PR21143
Hi,
The patch below is supposed to fix
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21143
The patch changes fortran/Make-lang.ing in analogy to cp/Make-lang.in
and tested by cross-building gcc w/ f95 enabled for several rtems
targets.
Ralf
2005-04-21 Ralf Corsepius <ralf.corsepius@rtems.org>
PR fortran/21143
* fortran/Make-lang.in: Replace GFORTRAN_CROSS_NAME w/
GFORTRAN_TARGET_INSTALL_NAME.
Replace program_transform_cross_name w/ program_transform_name.
Index: gcc/fortran/Make-lang.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fortran/Make-lang.in,v
retrieving revision 1.12
diff -u -r1.12 Make-lang.in
--- gcc/fortran/Make-lang.in 13 Nov 2004 07:35:54 -0000 1.12
+++ gcc/fortran/Make-lang.in 21 Apr 2005 16:17:57 -0000
@@ -44,7 +44,7 @@
GFORTRAN_INSTALL_NAME := $(shell echo gfortran|sed '$(program_transform_name)')
# Actual name to use when installing a cross-compiler.
-GFORTRAN_CROSS_NAME := $(shell echo gfortran|sed '$(program_transform_cross_name)')
+GFORTRAN_TARGET_INSTALL_NAME := $(shell echo gfortran|sed '$(program_transform_name)')
#^L
@@ -187,9 +187,9 @@
f95.install-common: installdirs
-if [ -f f951$(exeext) ] ; then \
if [ -f gfortran-cross$(exeext) ] ; then \
- rm -f $(DESTDIR)$(bindir)/$(GFORTRAN_CROSS_NAME)$(exeext); \
- $(INSTALL_PROGRAM) gfortran-cross$(exeext) $(DESTDIR)$(bindir)/$(GFORTRAN_CROSS_NAME)$(exeext); \
- chmod a+x $(DESTDIR)$(bindir)/$(GFORTRAN_CROSS_NAME)$(exeext); \
+ rm -f $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
+ $(INSTALL_PROGRAM) gfortran-cross$(exeext) $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
+ chmod a+x $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
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); \
@@ -220,7 +220,7 @@
else : ; fi; \
rm -rf $(DESTDIR)$(bindir)/$(GFORTRAN_INSTALL_NAME)$(exeext); \
rm -rf $(DESTDIR)$(man1dir)/$(GFORTRAN_INSTALL_NAME)$(man1ext); \
- rm -rf $(DESTDIR)$(bindir)/$(GFORTRAN_CROSS_NAME)$(exeext); \
+ rm -rf $(DESTDIR)$(bindir)/$(GFORTRAN_TARGET_INSTALL_NAME)$(exeext); \
rm -rf $(DESTDIR)$(infodir)/gfortran.info*
#