blob: 24e3abe0bbec61b626f0c1cf91baf31e547147ee [file] [log] [blame]
Brad Bishopc68388fc2019-08-26 01:33:31 -04001From 010f09f2963ede24e85134e5fab2fa627a9afa05 Mon Sep 17 00:00:00 2001
Brad Bishopc342db32019-05-15 21:57:59 -04002From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:20:01 +0400
Brad Bishopc68388fc2019-08-26 01:33:31 -04004Subject: [PATCH 08/36] fortran cross-compile hack.
Brad Bishopc342db32019-05-15 21:57:59 -04005
6* Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used
7used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross
8directory.
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11
12Upstream-Status: Inappropriate [embedded specific]
13---
14 libgfortran/configure | 2 +-
15 libgfortran/configure.ac | 2 +-
16 2 files changed, 2 insertions(+), 2 deletions(-)
17
18diff --git a/libgfortran/configure b/libgfortran/configure
Brad Bishopc68388fc2019-08-26 01:33:31 -040019index 60867b93d0e..3fc9fca5b7b 100755
Brad Bishopc342db32019-05-15 21:57:59 -040020--- a/libgfortran/configure
21+++ b/libgfortran/configure
Brad Bishopc68388fc2019-08-26 01:33:31 -040022@@ -13071,7 +13071,7 @@ esac
Brad Bishopc342db32019-05-15 21:57:59 -040023
24 # We need gfortran to compile parts of the library
25 #AC_PROG_FC(gfortran)
26-FC="$GFORTRAN"
27+#FC="$GFORTRAN"
28 ac_ext=${ac_fc_srcext-f}
29 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
30 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
31diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
Brad Bishopc68388fc2019-08-26 01:33:31 -040032index 7cfce28ab69..6cd515ee1a4 100644
Brad Bishopc342db32019-05-15 21:57:59 -040033--- a/libgfortran/configure.ac
34+++ b/libgfortran/configure.ac
35@@ -250,7 +250,7 @@ AC_SUBST(enable_static)
36
37 # We need gfortran to compile parts of the library
38 #AC_PROG_FC(gfortran)
39-FC="$GFORTRAN"
40+#FC="$GFORTRAN"
41 AC_PROG_FC(gfortran)
42
43 # extra LD Flags which are required for targets
44--
Brad Bishopc68388fc2019-08-26 01:33:31 -0400452.22.1
Brad Bishopc342db32019-05-15 21:57:59 -040046