#16025: Makefiles bundled with source distribution fail to build cross-compiler. -------------------------------------+------------------------------------- Reporter: vanessamchale | Owner: (none) Type: bug | Status: patch Priority: normal | Milestone: Component: Build System | Version: 8.6.3 (make) | Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: x86_64 Type of failure: Building GHC | (amd64) failed | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Ben Gamari <ben@…>): In [changeset:"0d7fb471f368237462c700bac5500a90d29a1114/ghc" 0d7fb47/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="0d7fb471f368237462c700bac5500a90d29a1114" configure: Disable LD_NO_GOLD logic when cross-compiling 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. }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16025#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler