diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-04-14 18:10:45 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 10:23:21 +0100 |
commit | 03bb12008891cf1a023aaddb6547da6d41d0cab0 (patch) | |
tree | c778022d8ecf55bacfa0a92ac7245eeb194d2147 /meta/recipes-devtools/gcc/gcc-7.1/0017-fortran-cross-compile-hack.patch | |
parent | 835b705ee92900f0d73cee612ce790fde4b1e2a4 (diff) | |
download | openembedded-core-03bb12008891cf1a023aaddb6547da6d41d0cab0.tar.gz openembedded-core-03bb12008891cf1a023aaddb6547da6d41d0cab0.tar.bz2 openembedded-core-03bb12008891cf1a023aaddb6547da6d41d0cab0.zip |
gcc: Add recipes for gcc-7
Switch default compiler to gcc 7
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-7.1/0017-fortran-cross-compile-hack.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-7.1/0017-fortran-cross-compile-hack.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-7.1/0017-fortran-cross-compile-hack.patch b/meta/recipes-devtools/gcc/gcc-7.1/0017-fortran-cross-compile-hack.patch new file mode 100644 index 0000000000..e2830c59d0 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-7.1/0017-fortran-cross-compile-hack.patch @@ -0,0 +1,46 @@ +From 4fc35a2bb7666a7de35568eb5d47f0ce6acebe62 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Fri, 29 Mar 2013 09:20:01 +0400 +Subject: [PATCH 17/47] fortran cross-compile hack. + +* Fortran would have searched for arm-angstrom-gnueabi-gfortran but would have used +used gfortan. For gcc_4.2.2.bb we want to use the gfortran compiler from our cross +directory. + +Signed-off-by: Khem Raj <raj.khem@gmail.com> + +Upstream-Status: Inappropriate [embedded specific] +--- + libgfortran/configure | 2 +- + libgfortran/configure.ac | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libgfortran/configure b/libgfortran/configure +index 81238fcb79c..7ded7abd456 100755 +--- a/libgfortran/configure ++++ b/libgfortran/configure +@@ -12792,7 +12792,7 @@ esac + + # We need gfortran to compile parts of the library + #AC_PROG_FC(gfortran) +-FC="$GFORTRAN" ++#FC="$GFORTRAN" + ac_ext=${ac_fc_srcext-f} + ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5' + ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5' +diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac +index 37b12d2998f..63a4166ef62 100644 +--- a/libgfortran/configure.ac ++++ b/libgfortran/configure.ac +@@ -243,7 +243,7 @@ AC_SUBST(enable_static) + + # We need gfortran to compile parts of the library + #AC_PROG_FC(gfortran) +-FC="$GFORTRAN" ++#FC="$GFORTRAN" + AC_PROG_FC(gfortran) + + # extra LD Flags which are required for targets +-- +2.12.2 + |