Browse Source

Pass -static when compiling for MUSL

Currently needed for when configure scripts and such try to build executables
add-rc-path
Alex Crichton 9 years ago
parent
commit
f308ef2121
  1. 3
      src/lib.rs

3
src/lib.rs

@ -418,6 +418,9 @@ impl Config {
if !target.contains("i686") && !target.contains("windows-gnu") {
cmd.args.push("-fPIC".into());
}
if target.contains("musl") {
cmd.args.push("-static".into());
}
}
if self.cpp && !msvc {

Loading…
Cancel
Save