aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rust/allow-crt-static-on-stable.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-04-13 14:55:55 +0200
committerJakub Jirutka <jakub@jirutka.cz>2017-04-13 15:04:29 +0200
commit3b2c2faa1fbc4bb51fa1dc34f71fea155f5f0664 (patch)
tree6755891751db709e04f34c95f54297981205f6a3 /testing/rust/allow-crt-static-on-stable.patch
parent0762f2d2d91b07112e63111f64303d965d992fbd (diff)
downloadaports-3b2c2faa1fbc4bb51fa1dc34f71fea155f5f0664.tar.bz2
aports-3b2c2faa1fbc4bb51fa1dc34f71fea155f5f0664.tar.xz
testing/rust: build dynamically linked binaries by default
Note that users still can switch to static linking using `-C target-feature=+crt-static`, that is allowed in our rustc.
Diffstat (limited to 'testing/rust/allow-crt-static-on-stable.patch')
-rw-r--r--testing/rust/allow-crt-static-on-stable.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/testing/rust/allow-crt-static-on-stable.patch b/testing/rust/allow-crt-static-on-stable.patch
index df4c06bf79..5e81671f60 100644
--- a/testing/rust/allow-crt-static-on-stable.patch
+++ b/testing/rust/allow-crt-static-on-stable.patch
@@ -3,17 +3,17 @@ Date: Sat, 08 Aug 2016 14:49:00 +0200
Subject: [PATCH] Allow to use -C target-feature=+crt-static on stable rustc
Rust links system libraries statically on musl by default, but we want to
-link dynamically. At the same time we would like to preserve this behaviour
-for consistency with other distros, to not confuse users.
+link dynamically. At the same time we want to allow users to optionally
+use static linking.
rustc already provides codegen option to change linking, but currently it's
allowed only for nightly builds. This patch just removes this check and so
allows to use it even on stable build.
-Build dynamically linked binary with rustc or cargo:
+Build staticaly linked binary with rustc or cargo:
- $ rustc -C target-feature=-crt-static hello_world.rs
- $ RUSTFLAGS="-C target-feature=-crt-static" cargo build
+ $ rustc -C target-feature=+crt-static hello_world.rs
+ $ RUSTFLAGS="-C target-feature=+crt-static" cargo build
--- a/src/librustc/session/mod.rs
+++ b/src/librustc/session/mod.rs