[GHC] #12771: GHCi incorrectly favors static libraries over import libraries
GHC
ghc-devs at haskell.org
Thu Oct 27 22:17:40 UTC 2016
#12771: GHCi incorrectly favors static libraries over import libraries
----------------------------------------+----------------------------
Reporter: Phyx- | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Windows
Architecture: Unknown/Multiple | Type of failure: Other
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
----------------------------------------+----------------------------
Given a static library and an import library in the same folder. e.g.
{{{
libfoo.a
libfoo.dll.a
}}}
running `ghci -lfoo` we should prefer the import library `libfoo.dll.a`
over `libfoo.a` because we prefer having to just load the DLL. and not
having to do any linking.
This also more closely emulated the behaviour of LD, which has a search
order of
{{{
libxxx.dll.a
xxx.dll.a
libxxx.a
cygxxx.dll (*)
libxxx.dll
xxx.dll
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12771>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list