diff options
| author | Rasmus Thomsen <oss@cogitri.dev> | 2019-06-26 17:58:04 +0200 |
|---|---|---|
| committer | Leo <thinkabit.ukim@gmail.com> | 2019-07-05 08:00:57 -0300 |
| commit | 69851bdae1177246337f51a35734e93f1fd7e3d3 (patch) | |
| tree | 27364818b059fe44e2645df7e9019a45be79f140 /community/rust/musl-dont-use-crt-static.patch | |
| parent | 819bd837a995659eaf0ecdca074b87ede3a7f99c (diff) | |
| download | aports-69851bdae1177246337f51a35734e93f1fd7e3d3.tar.bz2 aports-69851bdae1177246337f51a35734e93f1fd7e3d3.tar.xz | |
community/rust: build on arm{hf,v7}, ppc64le & x86
Also disable full bootstrapping. Since we always bootstrap from $pkgver minus one
we don't need it and it increases buildtime considerably.
Also keep in mind that we have to add new arches in multiple steps:
1. Compile with the upstream triplets, compiling alpine's triplets in
2. Compile again, now with our triplets selected as build/target, now that
rustc knows about them
This means that the produced compilers MUST ONLY be used to bootstrap the actual
compilers with our triplets, DO NOT use these to compile packages! Since x86_64
still uses the usual triplets it's fine to upgrade/add packages for that arch
though, please DO NOT do this for armhf,armv7,aarch64,ppc64le or x86 though!
Diffstat (limited to 'community/rust/musl-dont-use-crt-static.patch')
| -rw-r--r-- | community/rust/musl-dont-use-crt-static.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/community/rust/musl-dont-use-crt-static.patch b/community/rust/musl-dont-use-crt-static.patch new file mode 100644 index 0000000000..4cddfc4c7a --- /dev/null +++ b/community/rust/musl-dont-use-crt-static.patch @@ -0,0 +1,13 @@ +We first have to build against upstream triplets, which by default use crt-static +linking. This won't build though, so let's just disable it, we disable it in our +triplets too. +--- rustc-1.28.0-src/src/librustc_target/spec/linux_musl_base.rs.orig 2018-10-08 21:02:21.588611506 +0200 ++++ rustc-1.28.0-src/src/librustc_target/spec/linux_musl_base.rs 2018-10-08 21:02:40.846454873 +0200 +@@ -61,7 +61,7 @@ + base.post_link_objects_crt.push("crtn.o".to_string()); + + // These targets statically link libc by default +- base.crt_static_default = true; ++ base.crt_static_default = false; + // These targets allow the user to choose between static and dynamic linking. + base.crt_static_respected = true; |
