Browse Source

Pass -fPIC on 32-bit

Apparently it's allowed and needed!

See https://bugzilla.mozilla.org/show_bug.cgi?id=1336155#c19
vs2017
Alex Crichton 8 years ago
parent
commit
7d37a9a61b
  1. 3
      src/lib.rs

3
src/lib.rs

@ -554,8 +554,7 @@ impl Config {
if !nvcc {
cmd.args.push("-ffunction-sections".into());
cmd.args.push("-fdata-sections".into());
if self.pic.unwrap_or(!target.contains("i686") &&
!target.contains("windows-gnu")) {
if self.pic.unwrap_or(!target.contains("windows-gnu")) {
cmd.args.push("-fPIC".into());
}
} else if self.pic.unwrap_or(false) {

Loading…
Cancel
Save