Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
Source project has a limited visibility.
  • Ben Gamari's avatar
    0d7fb471
    configure: Disable LD_NO_GOLD logic when cross-compiling · 0d7fb471
    Ben Gamari authored
    This is generally terrible: see #16025. In short, we previously just blindly
    used an un-prefixed ld for LD_NO_GOLD. This is blatantly wrong. Ideally we would
    actually verify that ld.gold is indeed broken (by binutils #22266) before
    insisting on using another linker but sadly we cannot do so when cross-compiling
    since this would require running host code.
    
    For now we simply disable the LD_NO_GOLD logic when cross-compiling and hope
    that the user has verified that their ld.gold isn't affected by #22266.
    0d7fb471
    History
    configure: Disable LD_NO_GOLD logic when cross-compiling
    Ben Gamari authored
    This is generally terrible: see #16025. In short, we previously just blindly
    used an un-prefixed ld for LD_NO_GOLD. This is blatantly wrong. Ideally we would
    actually verify that ld.gold is indeed broken (by binutils #22266) before
    insisting on using another linker but sadly we cannot do so when cross-compiling
    since this would require running host code.
    
    For now we simply disable the LD_NO_GOLD logic when cross-compiling and hope
    that the user has verified that their ld.gold isn't affected by #22266.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.