Thread (3 messages) 3 messages, 2 authors, 2021-10-31

Re: [OE-core] [PATCH] libgfortran: Set GFORTRAN

From: Khem Raj <hidden>
Date: 2021-10-31 17:38:44

On Sun, Oct 31, 2021 at 10:29 AM Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
quoted hunk ↗ jump to hunk
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 <redacted>
---
 meta/recipes-devtools/gcc/libgfortran.inc | 5 +++++
 1 file changed, 5 insertions(+)
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc
b/meta/recipes-devtools/gcc/libgfortran.inc
index 344ec5e21ef..e810146d4d1 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}"
+

Is this something we will need for general Fortran programs too now ?
 do_configure () {
        for target in libbacktrace libgfortran
        do
--
2.32.0


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#157688):
https://lists.openembedded.org/g/openembedded-core/message/157688
Mute This Topic: https://lists.openembedded.org/mt/86722000/1997914
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
raj.khem@gmail.com]
-=-=-=-=-=-=-=-=-=-=-=-
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help