diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-15 13:10:46 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-07-15 13:12:51 +0100 |
| commit | 480dc1c0dfeb053b880ea733e72b4c639e9a9d8a (patch) | |
| tree | 74158ad02a5685ac740b56d9d0cb187262669e0a /meta-selftest/recipes-test/fortran | |
| parent | e665be2ad94b736d5a07395303fd71937c021ee8 (diff) | |
| download | poky-480dc1c0dfeb053b880ea733e72b4c639e9a9d8a.tar.gz | |
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.
(From OE-Core rev: 8f1cfaf2be834217cd1cf5be98f44270c36cc31a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/recipes-test/fortran')
| -rw-r--r-- | meta-selftest/recipes-test/fortran/fortran-helloworld.bb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta-selftest/recipes-test/fortran/fortran-helloworld.bb b/meta-selftest/recipes-test/fortran/fortran-helloworld.bb index a897966608..11928dc95a 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" | |||
| 6 | 6 | ||
| 7 | SRC_URI = "file://hello.f95" | 7 | SRC_URI = "file://hello.f95" |
| 8 | 8 | ||
| 9 | S = "${WORKDIR}/sources" | ||
| 10 | UNPACKDIR = "${S}" | ||
| 11 | |||
| 9 | # These set flags that Fortran doesn't support | 12 | # These set flags that Fortran doesn't support |
| 10 | SECURITY_CFLAGS = "" | 13 | SECURITY_CFLAGS = "" |
| 11 | SECURITY_LDFLAGS = "" | 14 | SECURITY_LDFLAGS = "" |
| 12 | 15 | ||
| 13 | do_compile() { | 16 | do_compile() { |
| 14 | ${FC} ${LDFLAGS} ${UNPACKDIR}/hello.f95 -o ${B}/fortran-hello | 17 | ${FC} ${LDFLAGS} hello.f95 -o ${B}/fortran-hello |
| 15 | } | 18 | } |
| 16 | 19 | ||
| 17 | do_install() { | 20 | do_install() { |
