From: Richard Purdie Date: Mon, 15 Jul 2024 12:10:46 +0000 (+0100) Subject: selftest/fortran-helloworld: Fix buildpaths error X-Git-Tag: uninative-4.6~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f1cfaf2be834217cd1cf5be98f44270c36cc31a;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git selftest/fortran-helloworld: Fix buildpaths error There is a buildpaths QA error in the test recipe that somehow didn't show up in earlier testing. Use a source directory and tweak the build command to avoid embedding build paths in the generated binary. Signed-off-by: Richard Purdie --- diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb index a8979666084..11928dc95a9 100644 --- a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb +++ b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb @@ -6,12 +6,15 @@ DEPENDS = "libgfortran" SRC_URI = "file://hello.f95" +S = "${WORKDIR}/sources" +UNPACKDIR = "${S}" + # These set flags that Fortran doesn't support SECURITY_CFLAGS = "" SECURITY_LDFLAGS = "" do_compile() { - ${FC} ${LDFLAGS} ${UNPACKDIR}/hello.f95 -o ${B}/fortran-hello + ${FC} ${LDFLAGS} hello.f95 -o ${B}/fortran-hello } do_install() {