[GHC] #7909: GHC doesn't respect -optl and -optc in a couple of places

#7909: GHC doesn't respect -optl and -optc in a couple of places ---------------------------------+------------------------------------------ Reporter: simonmar | Owner: simonmar Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Keywords: | Os: Unknown/Multiple Architecture: Unknown/Multiple | Failure: None/Unknown Difficulty: Unknown | Testcase: Blockedby: | Blocking: Related: | ---------------------------------+------------------------------------------ A legitimate use of `-optl` and `-optc` is to pass options that should ''always'' be passed to gcc, such as `-B<something>` if we're invoking `gcc` against a particular set of libraries. For this to work, we have to ensure that `-optl` and `-optc` options are always passed. In `joinObjectFiles`, we don't add the options from `-optl`. I suspect that we don't want to just add them, because we also put the `-l` options in this list, so we should separate the two. In `mkExtraObj`, we don't add the options from `-optc`. Probably we should refactor things so that these options are automatically added by `SysTools.runCc` and friends, being careful about option ordering. -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7909 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#7909: GHC doesn't respect -optl and -optc in a couple of places
---------------------------------+------------------------------------------
Reporter: simonmar | Owner: simonmar
Type: bug | Status: new
Priority: normal | Milestone: 7.8.1
Component: Compiler | Version: 7.6.3
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by marlowsd@…):
commit 1e2b3780ebc40d28cd0f029b90df102df09e6827
{{{
Author: Simon Marlow

#7909: GHC doesn't respect -optl and -optc in a couple of places -------------------------------+-------------------------------------------- Reporter: simonmar | Owner: simonmar Type: bug | Status: closed Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Resolution: fixed | Keywords: Os: Unknown/Multiple | Architecture: Unknown/Multiple Failure: None/Unknown | Difficulty: Unknown Testcase: | Blockedby: Blocking: | Related: -------------------------------+-------------------------------------------- Changes (by simonmar): * cc: bos, agallagher@… (added) * status: new => closed * resolution: => fixed -- Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/7909#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC