diff options
| -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() { |
