Re-linking is not avoided when -dynamic is used
In normal builds, GHC will no re-link executables when that's not necesary (e.g. when no code has changed).
But when -dynamic
is used, it re-links every time.
Minimal example for reproduction: https://github.com/nh2/cabal-relink-test
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.2 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler (Linking) |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | nh2 |
Operating system | |
Architecture |