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 <[email protected]>
---
 meta-selftest/recipes-test/fortran/fortran-helloworld.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

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() {
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#201917): 
https://lists.openembedded.org/g/openembedded-core/message/201917
Mute This Topic: https://lists.openembedded.org/mt/107229688/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to