#3681: hsc2hs wrapper script throws away $HSC2HS_EXTRA's value when specified C
compiler to use
---------------------------+------------------------------------------------
Reporter: nwn | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: hsc2hs | Version: 6.12.1 RC1
Resolution: | Keywords:
Difficulty: | Os: MacOS X
Testcase: | Architecture: x86
Failure: None/Unknown |
---------------------------+------------------------------------------------
Changes (by nwn):
* summary: hsc2hs wrapper script ignores default flags => hsc2hs wrapper
script throws away $HSC2HS_EXTRA's value when
specified C compiler to use
Comment:
The default flags means $HSC2HS_EXTRA in the script. On OS X, ghc can only
build 32 bit binary, so hsc2hs should be operated to build 32bit binary.
For example, when I install a package which will build some *.hsc files
(e.g. network) with Cabal, I expect hsc2hs will be passed the flags to
build 32bit binaries. But Cabal passes --cc flags to hsc2hs, so
$HSC2HS_EXTRA's value becomes empty, hsc2hs goes wrong. Because gcc on OS
X will build 64bit binary as default.
And I think this is the problem about the wrapper script. My wrapper
script will ignore $HSC2HS_EXTRA only when specified C compiler to use is
not gcc.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3681#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs