From 0667f1c49525c7c75ec6e7ed1da7884dde84f70a Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 8 Feb 2017 16:55:57 -0800 Subject: [PATCH 1/2] rustbuild: Pass -fPIC on 32-bit non-Windows platforms This is a smaller and more targeted backport of #39523 which drives to the heart of the issue, just passing `-fPIC` on 32-bit platforms. More rationale for this commit can be found in #39523 itself. --- src/bootstrap/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index cd80c4298dc41..71cb2895736aa 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -812,6 +812,11 @@ impl Build { }, _ => {}, } + + if !target.contains("windows") && target.contains("i686") { + base.push("-fPIC".into()); + } + return base } From 5a35f0273606e7172be30ac0f013be6c12f926c5 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 8 Feb 2017 17:02:06 -0800 Subject: [PATCH 2/2] Update relnotes for a 2017-02-09 release date --- RELEASES.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index 7a543c7f726f2..bf67ddfbbee44 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,9 +1,11 @@ -Version 1.15.1 (2017-02-08) +Version 1.15.1 (2017-02-09) =========================== * [Fix IntoIter::as_mut_slice's signature][39466] +* [Compile compiler builtins with `-fPIC` on 32-bit platforms][39523] [39466]: https://github.com/rust-lang/rust/pull/39466 +[39523]: https://github.com/rust-lang/rust/pull/39523 Version 1.15.0 (2017-02-02) @@ -971,7 +973,7 @@ Tooling * [Test binaries now support a `--test-threads` argument to specify the number of threads used to run tests, and which acts the same as the `RUST_TEST_THREADS` environment variable] - (https://github.com/rust-lang/rust/pull/35414) + (https://github.com/rust-lang/rust/pull/35414) * [The test runner now emits a warning when tests run over 60 seconds] (https://github.com/rust-lang/rust/pull/35405) * [rustdoc: Fix methods in search results]