build.rs: Remove empty and useless LD_FLAGS.

This commit is contained in:
Brian Smith 2023-10-05 11:47:01 -07:00
parent 9d2abfcf52
commit c2910b0af4

View File

@ -160,8 +160,6 @@ fn cpp_flags(compiler: &cc::Tool) -> &'static [&'static str] {
} }
} }
const LD_FLAGS: &[&str] = &[];
// None means "any OS" or "any target". The first match in sequence order is // None means "any OS" or "any target". The first match in sequence order is
// taken. // taken.
const ASM_TARGETS: &[AsmTarget] = &[ const ASM_TARGETS: &[AsmTarget] = &[
@ -504,9 +502,6 @@ fn build_library(
let mut c = cc::Build::new(); let mut c = cc::Build::new();
for f in LD_FLAGS {
let _ = c.flag(f);
}
match target.os.as_str() { match target.os.as_str() {
"macos" => { "macos" => {
let _ = c.flag("-fPIC"); let _ = c.flag("-fPIC");