libgfortran: Set GFORTRAN
PATCH 1/1 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.
--- meta/recipes-devtools/gcc/libgfortran.inc | 5 +++++ 1 file changed, 5 insertions(+)
meta/recipes-devtools/gcc/libgfortran.inc +5 -0
@@ -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
Signature · 1 line
2.32.0
Quoted 15 lines · Richard Purdie
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 <[email protected]>--- meta/recipes-devtools/gcc/libgfortran.inc | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-devtools/gcc/libgfortran.inc +0
-0
meta/recipes-devtools/gcc/libgfortran.inc EXTRA_OECONF_PATHS = "\ · line 12
Quoted 8 lines
meta/recipes-devtools/gcc/libgfortran.inc +5
-0@@ -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 ?
Quoted 19 lines
meta/recipes-devtools/gcc/libgfortran.inc +0
-1do_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: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 22 lines · Khem Raj
Quoted 18 lines · Richard Purdie
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 <[email protected]>---
meta/recipes-devtools/gcc/libgfortran.inc | 5 +++++1 file changed, 5 insertions(+)meta/recipes- renamed from meta/recipes-devtools/gcc/libgfortran.inc +0
-0devtools/gcc/libgfortran.inc
index344ec5e21ef..e810146d4d1100644meta/recipes-devtools/gcc/libgfortran.inc +0
-0@@ -5,6 +5,11 @@ EXTRA_OECONF_PATHS = "\ --with-build-sysroot=${STAGING_DIR_TARGET} \"
Quoted 10 lines
meta/recipes-devtools/gcc/libgfortran.inc EXTRA_OECONF_PATHS = "\ · line 12
Quoted 6 lines
meta/recipes-devtools/gcc/libgfortran.inc +5
-0+# 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 ?
No, it is specific to the ligfortran configure script.
Cheers,
Richard