summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-10-31 16:37:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-11-01 10:36:51 +0000
commit1694bb6f698bb206e7c0cce466688faddd7c62ec (patch)
treedfbd86f02992fa48b25d66cc69355849a6b96901
parent3ae309ea067f66c6590c633f61069e43bf18c15d (diff)
downloadpoky-1694bb6f698bb206e7c0cce466688faddd7c62ec.tar.gz
libgfortran: Set GFORTRAN
The libgfortran configure sets FC to be $GFORTRAN. We did used to patch that out but rather than carry a patch to gcc, just set GFORTRAN as needed. (From OE-Core rev: 4ec096a9ce8a49b631efc50e7d95ff653d4c4374) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/libgfortran.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc
index 344ec5e21e..e810146d4d 100644
--- a/meta/recipes-devtools/gcc/libgfortran.inc
+++ b/meta/recipes-devtools/gcc/libgfortran.inc
@@ -5,6 +5,11 @@ EXTRA_OECONF_PATHS = "\
5 --with-build-sysroot=${STAGING_DIR_TARGET} \ 5 --with-build-sysroot=${STAGING_DIR_TARGET} \
6" 6"
7 7
8# An arm hard float target like raspberrypi4 won't build
9# as CFLAGS don't make it to the fortran compiler otherwise
10# (the configure script sets FC to $GFORTRAN unconditionally)
11export GFORTRAN = "${FC}"
12
8do_configure () { 13do_configure () {
9 for target in libbacktrace libgfortran 14 for target in libbacktrace libgfortran
10 do 15 do