diff --git a/build.rs b/build.rs index 234214e9d9..0e4e26968d 100644 --- a/build.rs +++ b/build.rs @@ -509,14 +509,6 @@ fn build_library( // Rebuild the library if necessary. let lib_path = PathBuf::from(out_dir).join(format!("lib{}.a", lib_name)); - match target.os.as_str() { - "macos" => { - let _ = c.flag("-Wl,-dead_strip"); - } - _ => { - let _ = c.flag("-Wl,--gc-sections"); - } - } for o in objs { let _ = c.object(o); }