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

GHC cvs-ghc at haskell.org
Tue May 14 14:01:58 CEST 2013


#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



More information about the ghc-tickets mailing list