summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/libgfortran.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/libgfortran.inc')
-rw-r--r--meta/recipes-devtools/gcc/libgfortran.inc22
1 files changed, 14 insertions, 8 deletions
diff --git a/meta/recipes-devtools/gcc/libgfortran.inc b/meta/recipes-devtools/gcc/libgfortran.inc
index 7543585e6e..fa6aecaaa3 100644
--- a/meta/recipes-devtools/gcc/libgfortran.inc
+++ b/meta/recipes-devtools/gcc/libgfortran.inc
@@ -5,6 +5,11 @@ EXTRA_OECONF_PATHS = "\
5 --with-build-sysroot=${STAGING_DIR_TARGET} \ 5 --with-build-sysroot=${STAGING_DIR_TARGET} \
6" 6"
7 7
8# An arm hard float target like raspberrypi4 won't build
9# as CFLAGS don't make it to the fortran compiler otherwise
10# (the configure script sets FC to $GFORTRAN unconditionally)
11export GFORTRAN = "${FC} -ffile-prefix-map=${S}=${TARGET_DBGSRC_DIR} -ffile-prefix-map=${B}=${TARGET_DBGSRC_DIR} -gno-record-gcc-switches"
12
8do_configure () { 13do_configure () {
9 for target in libbacktrace libgfortran 14 for target in libbacktrace libgfortran
10 do 15 do
@@ -42,8 +47,9 @@ do_install () {
42 chown -R root:root ${D} 47 chown -R root:root ${D}
43} 48}
44 49
50# avoid virtual/libc
45INHIBIT_DEFAULT_DEPS = "1" 51INHIBIT_DEFAULT_DEPS = "1"
46DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}" 52DEPENDS = "virtual/cross-cc virtual/compilerlibs"
47 53
48BBCLASSEXTEND = "nativesdk" 54BBCLASSEXTEND = "nativesdk"
49 55
@@ -54,12 +60,12 @@ PACKAGES = "\
54 libgfortran-staticdev \ 60 libgfortran-staticdev \
55" 61"
56 62
57LICENSE_${PN} = "GPL-3.0-with-GCC-exception" 63LICENSE:${PN} = "GPL-3.0-with-GCC-exception"
58LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" 64LICENSE:${PN}-dev = "GPL-3.0-with-GCC-exception"
59LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" 65LICENSE:${PN}-dbg = "GPL-3.0-with-GCC-exception"
60 66
61FILES_${PN} = "${libdir}/libgfortran.so.*" 67FILES:${PN} = "${libdir}/libgfortran.so.*"
62FILES_${PN}-dev = "\ 68FILES:${PN}-dev = "\
63 ${libdir}/libgfortran*.so \ 69 ${libdir}/libgfortran*.so \
64 ${libdir}/libgfortran.spec \ 70 ${libdir}/libgfortran.spec \
65 ${libdir}/libgfortran.la \ 71 ${libdir}/libgfortran.la \
@@ -68,9 +74,9 @@ FILES_${PN}-dev = "\
68 ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \ 74 ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude/ \
69 ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ \ 75 ${libdir}/gcc/${TARGET_SYS}/${BINV}/include/ \
70" 76"
71FILES_${PN}-staticdev = "${libdir}/libgfortran.a" 77FILES:${PN}-staticdev = "${libdir}/libgfortran.a"
72 78
73INSANE_SKIP_${MLPREFIX}libgfortran-dev = "staticdev" 79INSANE_SKIP:${MLPREFIX}libgfortran-dev = "staticdev"
74 80
75do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" 81do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata"
76do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" 82do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata"