Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 2 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 3 | SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \ |
| 4 | file://crossbeam_atomic.patch;patchdir=${RUSTSRC} \ |
| 5 | file://hardcodepaths.patch;patchdir=${RUSTSRC} \ |
| 6 | file://getrandom-open64.patch;patchdir=${RUSTSRC} \ |
| 7 | file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=${RUSTSRC} \ |
| 8 | file://zlib-off64_t.patch;patchdir=${RUSTSRC} \ |
| 9 | " |
Andrew Geissler | c5535c9 | 2023-01-27 16:10:19 -0600 | [diff] [blame] | 10 | SRC_URI[rust.sha256sum] = "07ac4e6c93e0d8ecfaf3b86c4c78bbbde3f5be675f0334e7fb343cb4a0b81ebe" |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 11 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 12 | RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" |
| 13 | |
| 14 | # Used by crossbeam_atomic.patch |
| 15 | export TARGET_VENDOR |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 16 | |
| 17 | UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" |
| 18 | UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 19 | |
| 20 | # see recipes-devtools/gcc/gcc/0018-Add-ssp_nonshared-to-link-commandline-for-musl-targe.patch |
| 21 | # we need to link with ssp_nonshared on musl to avoid "undefined reference to `__stack_chk_fail_local'" |
| 22 | # when building MACHINE=qemux86 for musl |
| 23 | WRAPPER_TARGET_EXTRALD:libc-musl = "-lssp_nonshared" |