#2745: ghc -shared broken
----------------------+-----------------------------------------------------
Reporter: simonmar | Owner:
Type: bug | Status: new
Priority: high | Milestone: 6.10.2
Component: Compiler | Version: 6.10.1
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown/Multiple
Os: Windows |
----------------------+-----------------------------------------------------
Changes (by simonmar):
* cc: [EMAIL PROTECTED] (added)
Comment:
The culprit appears to be this patch:
{{{
Mon Oct 13 21:14:26 BST 2008 Clemens Fruhwirth <[EMAIL PROTECTED]>
* Do not filter the rts from linked libraries in linkDynLib as Windows
does not allo
w unresolved symbols
{
hunk ./compiler/main/DriverPipeline.hs 1497
- let pkgs_no_rts = filter ((/= rtsPackageId) . packageConfigId)
pkgs
hunk ./compiler/main/DriverPipeline.hs 1498
+ -- On Windows we need to link the RTS import lib as Windows does
+ -- not allow undefined symbols.
+#if defined(mingw32_HOST_OS)
+ let pkgs_no_rts = filter ((/= rtsPackageId) . packageConfigId)
pkgs
+#else
+ let pkgs_no_rts = pkgs
+#endif
}
}}}
but the patch doesn't seem to match the description - should it be
`!defined(mingw32_HOST_OS)`?
We need a test for this too.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2745#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