]> code.ossystems Code Review - openembedded-core.git/commitdiff
libgfortran: Set GFORTRAN
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 31 Oct 2021 16:37:24 +0000 (16:37 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Nov 2021 10:36:49 +0000 (10:36 +0000)
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>
meta/recipes-devtools/gcc/libgfortran.inc

index 344ec5e21ef86a58bef1c8ba0424177c41fabe86..e810146d4d1eb146889521e825b60020a44781b0 100644 (file)
@@ -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