GHCi incorrectly favors static libraries over import libraries
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
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |