[Git][ghc/ghc][wip/supersven/correctly_propagate_host-build-target] bindist: Propagate user set $LD to ghc-toolchain
Sven Tennie pushed to branch wip/supersven/correctly_propagate_host-build-target at Glasgow Haskell Compiler / GHC Commits: e69759d7 by Sven Tennie at 2026-03-24T09:43:04+01:00 bindist: Propagate user set $LD to ghc-toolchain Otherwise, ghc-toolchain wrongly emits `-fuse-ld` for cross-compilers. - - - - - 1 changed file: - distrib/configure.ac.in Changes: ===================================== distrib/configure.ac.in ===================================== @@ -24,6 +24,10 @@ dnl works as expected, since we're slightly modifying how Autoconf dnl interprets build/host/target and how this interacts with $CC tests test -n "$target_alias" && ac_tool_prefix=$target_alias- +# Propagate $LD (if exists) to ghc-toolchain. Otherwise, ghc-toolchain tends to +# emit `-fuse-ld` for cross-compilers. +USER_LD="$LD" + dnl Various things from the source distribution configure bootstrap_build=@BuildPlatform@ bootstrap_host=@HostPlatform@ View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e69759d74df3f781b46cb38c4ae7406d... -- View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/e69759d74df3f781b46cb38c4ae7406d... You're receiving this email because of your account on gitlab.haskell.org.
participants (1)
-
Sven Tennie (@supersven)