mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00

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>
28 lines
584 B
BlitzBasic
28 lines
584 B
BlitzBasic
SUMMARY = "Fortran Hello World"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
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} hello.f95 -o ${B}/fortran-hello
|
|
}
|
|
|
|
do_install() {
|
|
install -D ${B}/fortran-hello ${D}${bindir}/fortran-hello
|
|
}
|
|
|
|
python () {
|
|
if not d.getVar("FORTRAN"):
|
|
raise bb.parse.SkipRecipe("Fortran isn't enabled")
|
|
}
|