Skip to content
Snippets Groups Projects
  • Josh Triplett's avatar
    e005f4ca
    Consolidate handling of libutil, and handle crt-static · e005f4ca
    Josh Triplett authored
    The two library blocks that specify `#[link(name = "util")]` do not
    actually reference any functions in `libutil`; the functions that do use
    `libutil` don't have any reference to it. And having two library blocks
    specify it results in two separate inclusions of `-lutil` on the linker
    command line. Move the link lines up to `src/unix/mod.rs`, making it
    easier to see all the libraries `libc` links to.
    
    This also makes `libutil` respect `target-feature=+crt-static`.
    e005f4ca
    History
    Consolidate handling of libutil, and handle crt-static
    Josh Triplett authored
    The two library blocks that specify `#[link(name = "util")]` do not
    actually reference any functions in `libutil`; the functions that do use
    `libutil` don't have any reference to it. And having two library blocks
    specify it results in two separate inclusions of `-lutil` on the linker
    command line. Move the link lines up to `src/unix/mod.rs`, making it
    easier to see all the libraries `libc` links to.
    
    This also makes `libutil` respect `target-feature=+crt-static`.