1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-31 04:57:45 +00:00

stdbuf: fix build warning

This commit is contained in:
Alex Lyon 2017-12-28 22:12:44 -08:00
parent 902d0414b0
commit 4deef05880
No known key found for this signature in database
GPG key ID: B517F04B325131B1

View file

@ -13,16 +13,12 @@ mod mkmain;
mod platform {
pub const DYLIB_EXT: &'static str = "dylib";
pub const DYLIB_FLAGS: [&'static str; 3] = ["-dynamiclib", "-undefined", "dynamic_lookup"];
pub const DYLIB_LINK_START: &'static str = "";
pub const DYLIB_LINK_END: &'static str = "";
}
#[cfg(target_os = "linux")]
mod platform {
pub const DYLIB_EXT: &'static str = "so";
pub const DYLIB_FLAGS: [&'static str; 1] = ["-shared"];
pub const DYLIB_LINK_START: &'static str = "-Wl,--whole-archive";
pub const DYLIB_LINK_END: &'static str = "-Wl,--no-whole-archive";
}
// FIXME: this entire thing is pretty fragile