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:49 +0000
commit4ec096a9ce8a49b631efc50e7d95ff653d4c4374 (patch)
tree4de8aa9ca3222cb7d46ad7314f360454dfd479c7
parentf26867fe4daec7299f59a82ae4a0d70cceb3e082 (diff)
downloadopenembedded-core-contrib-4ec096a9ce8a49b631efc50e7d95ff653d4c4374.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. 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 = "\
--with-build-sysroot=${STAGING_DIR_TARGET} \
"
+# An arm hard float target like raspberrypi4 won't build
+# as CFLAGS don't make it to the fortran compiler otherwise
+# (the configure script sets FC to $GFORTRAN unconditionally)
+export GFORTRAN = "${FC}"
+
do_configure () {
for target in libbacktrace libgfortran
do