Link plugins against existing libHSghc
This ticket split out from #3843 (closed) since it was getting too crowded
Once we can safely export all symbols from libHSghc through the executable, we want to link plugins against the loaded GHC library rather than a new copy. This has two benefits:
- Linking plugins will be faster
- We can make reinitializeGlobals into a no-op
This is currently blocked by #5292 (closed) because libHSghc exports more symbols than we can reexport on Windows. There is one suggestions in #3843 (closed) to reexport less: exclude more of GHC's dependencies from being reexported, using this snippet to get the package list:
$(foreach p,$(PACKAGES),$p-$(libraries/$p_dist-install_VERSION))
Once we have cut the number of exported symbols down enough, the patches in #3843 (closed)'s attachment 3843-v2.zip can be applied to fix this ticket. (There was a reported validate failure with this patch in annrun01 on x64 linux which should also be checked)
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | #5292 (closed) |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |