ghc doesn't pass flags to ld via -optl
I'm compiling i386 binaries on amd64 linux --- already overcame #9421 (closed), but still not there. When I do the following (using a i386 GHC 7.8.3 on a 64 bit Ubuntu)
~/r/LambdaHack$ cabal install haskell-lexer-1.0 -j1 --ghc-option="-optc-m32" --ghc-option="-opta-m32" --ghc-option="-optl-m32" --ghc-option="-optl-arch\ i386" --ghc-option="-optl-m\ elf_i386" --ghc-option="-optl-Wl,-m32" -v3 >& log
I get the attached log with, in particular, these lines:
("/home/mikolaj/local/bin/ghc",["-c","/tmp/4707.c","-o","/tmp/4707.o","-optc-m32","-opta-m32","-optl-m32","-optl-arch\\ i386","-optl-m\\ elf_i386","-optl-Wl,-m32"])
("/usr/bin/ld",["-x","-r","/tmp/4707.o","-o","/tmp/4708.o"])
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |