summary refs log tree commit diff
path: root/src/bootstrap/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-02-08 17:06:53 -0800
committerGitHub <noreply@github.com>2017-02-08 17:06:53 -0800
commit021bd294c039bd54aa5c4aa85bcdffb0d24bc892 (patch)
tree102579d8bcd7b7acc7428c4aa43752caf1f23d2b /src/bootstrap/lib.rs
parentd11639bdac67e850235b04dc7ac679d9e378b813 (diff)
parent5a35f0273606e7172be30ac0f013be6c12f926c5 (diff)
downloadrust-1.15.1.tar.gz
rust-1.15.1.zip
Merge pull request #39668 from alexcrichton/stable-next 1.15.1
[stable] More fixes for 1.15.1
Diffstat (limited to 'src/bootstrap/lib.rs')
-rw-r--r--src/bootstrap/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs
index cd80c4298dc..71cb2895736 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
     }