GHC doesn't respect -optl and -optc in a couple of places
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.
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |