Sven Tennie pushed to branch wip/supersven/correctly_propagate_host-build-target at Glasgow Haskell Compiler / GHC

Commits:

1 changed file:

Changes:

  • distrib/configure.ac.in
    ... ... @@ -24,6 +24,10 @@ dnl works as expected, since we're slightly modifying how Autoconf
    24 24
     dnl interprets build/host/target and how this interacts with $CC tests
    
    25 25
     test -n "$target_alias" && ac_tool_prefix=$target_alias-
    
    26 26
     
    
    27
    +# Propagate $LD (if exists) to ghc-toolchain. Otherwise, ghc-toolchain tends to
    
    28
    +# emit `-fuse-ld` for cross-compilers.
    
    29
    +USER_LD="$LD"
    
    30
    +
    
    27 31
     dnl Various things from the source distribution configure
    
    28 32
     bootstrap_build=@BuildPlatform@
    
    29 33
     bootstrap_host=@HostPlatform@