mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
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!
13 lines
723 B
Diff
13 lines
723 B
Diff
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;
|