Skip to content

Commit 7c4cb50

Browse files
committed
Auto merge of #39667 - alexcrichton:beta-next, r=brson
[beta] 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.
2 parents 90423c9 + 1784a1a commit 7c4cb50

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bootstrap/lib.rs

+5
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,11 @@ impl Build {
843843
},
844844
_ => {},
845845
}
846+
847+
if !target.contains("windows") && target.contains("i686") {
848+
base.push("-fPIC".into());
849+
}
850+
846851
return base
847852
}
848853

0 commit comments

Comments
 (0)