blob: 47f611e37ea3c3159168cbf5dae9ae49138bbc6d [file] [log] [blame]
Andrew Geisslerc926e172021-05-07 16:11:35 -05001From 904d102e3ccb93296b16ceb2e283a6ccf3c1d718 Mon Sep 17 00:00:00 2001
Andrew Geissler82c905d2020-04-13 13:39:40 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 29 Mar 2013 09:20:01 +0400
Andrew Geisslerc182c622020-05-15 14:13:32 -05004Subject: [PATCH] fortran cross-compile hack.
Andrew Geissler82c905d2020-04-13 13:39:40 -05005
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
Andrew Geisslerc926e172021-05-07 16:11:35 -050019index f3634389cf8..f974e874b8e 100755
Andrew Geissler82c905d2020-04-13 13:39:40 -050020--- a/libgfortran/configure
21+++ b/libgfortran/configure
Andrew Geisslerc926e172021-05-07 16:11:35 -050022@@ -13102,7 +13102,7 @@ esac
Andrew Geissler82c905d2020-04-13 13:39:40 -050023
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
Andrew Geisslerc926e172021-05-07 16:11:35 -050032index 8961e314d82..49c8221cb6b 100644
Andrew Geissler82c905d2020-04-13 13:39:40 -050033--- a/libgfortran/configure.ac
34+++ b/libgfortran/configure.ac
Andrew Geisslerc926e172021-05-07 16:11:35 -050035@@ -271,7 +271,7 @@ AC_SUBST(enable_static)
Andrew Geissler82c905d2020-04-13 13:39:40 -050036
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