
#10671: inplace/bin/ghc-stage1 doesn't respect --with-ld override -------------------------------------+------------------------------------- Reporter: mfox | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build System | Version: 7.10.1 Resolution: | Keywords: Operating System: Linux | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * cc: erikd (added) Comment: I think the problem is that although `--with-ld` adds "ld command" to the settings file, it isn't used anywhere. {{{ $ git grep "ld command" compiler/ settings.in settings.in: ("ld command", "@SettingsLdCommand@"), }}} In the function `initSysTools` in `compiler/main/SysTools.hs`, the C compiler is always used as the linker: {{{ ... ; gcc_prog <- getSetting "C compiler command" ; gcc_args_str <- getSetting "C compiler flags" ... -- Other things being equal, as and ld are simply gcc ; let as_prog = gcc_prog as_args = gcc_args ld_prog = gcc_prog ld_args = gcc_args ... }}} cc erikd, since he added the `--with-ld` option in Phab:D828 (the FIND_LD macro in aclocal.m4). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10671#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler