diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/libgfortran.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/libgfortran.inc | 22 |
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) | ||
11 | export GFORTRAN = "${FC} -ffile-prefix-map=${S}=${TARGET_DBGSRC_DIR} -ffile-prefix-map=${B}=${TARGET_DBGSRC_DIR} -gno-record-gcc-switches" | ||
12 | |||
8 | do_configure () { | 13 | do_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 | ||
45 | INHIBIT_DEFAULT_DEPS = "1" | 51 | INHIBIT_DEFAULT_DEPS = "1" |
46 | DEPENDS = "gcc-runtime gcc-cross-${TARGET_ARCH}" | 52 | DEPENDS = "virtual/cross-cc virtual/compilerlibs" |
47 | 53 | ||
48 | BBCLASSEXTEND = "nativesdk" | 54 | BBCLASSEXTEND = "nativesdk" |
49 | 55 | ||
@@ -54,12 +60,12 @@ PACKAGES = "\ | |||
54 | libgfortran-staticdev \ | 60 | libgfortran-staticdev \ |
55 | " | 61 | " |
56 | 62 | ||
57 | LICENSE_${PN} = "GPL-3.0-with-GCC-exception" | 63 | LICENSE:${PN} = "GPL-3.0-with-GCC-exception" |
58 | LICENSE_${PN}-dev = "GPL-3.0-with-GCC-exception" | 64 | LICENSE:${PN}-dev = "GPL-3.0-with-GCC-exception" |
59 | LICENSE_${PN}-dbg = "GPL-3.0-with-GCC-exception" | 65 | LICENSE:${PN}-dbg = "GPL-3.0-with-GCC-exception" |
60 | 66 | ||
61 | FILES_${PN} = "${libdir}/libgfortran.so.*" | 67 | FILES:${PN} = "${libdir}/libgfortran.so.*" |
62 | FILES_${PN}-dev = "\ | 68 | FILES:${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 | " |
71 | FILES_${PN}-staticdev = "${libdir}/libgfortran.a" | 77 | FILES:${PN}-staticdev = "${libdir}/libgfortran.a" |
72 | 78 | ||
73 | INSANE_SKIP_${MLPREFIX}libgfortran-dev = "staticdev" | 79 | INSANE_SKIP:${MLPREFIX}libgfortran-dev = "staticdev" |
74 | 80 | ||
75 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" | 81 | do_package_write_ipk[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |
76 | do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" | 82 | do_package_write_deb[depends] += "virtual/${MLPREFIX}libc:do_packagedata" |