Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Message-ID: Subject: Re: [OE-core] [PATCH] libgfortran: Set GFORTRAN From: "Richard Purdie" Date: Sun, 31 Oct 2021 17:39:21 +0000 In-Reply-To: References: <20211031172946.3481648-1-richard.purdie@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit List-id: To: Khem Raj Cc: openembedded-core@lists.openembedded.org On Sun, 2021-10-31 at 10:38 -0700, Khem Raj wrote: > > > On Sun, Oct 31, 2021 at 10:29 AM Richard Purdie > wrote: > > 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 > > --- > >  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 ? > No, it is specific to the ligfortran configure script. Cheers, Richard