We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e38966c commit 362bdf2Copy full SHA for 362bdf2
src/lib.rs
@@ -32,6 +32,10 @@ pub fn compile_library(output: &str, files: &[&str]) {
32
cmd.arg("-m64");
33
}
34
35
+ if !target.as_slice().contains("i686") {
36
+ cmd.arg("-fPIC");
37
+ }
38
+
39
let src = Path::new(os::getenv("CARGO_MANIFEST_DIR").unwrap());
40
let dst = Path::new(os::getenv("OUT_DIR").unwrap());
41
let mut objects = Vec::new();
0 commit comments