Introduce -rpath flag for runtime lib search paths
Introduces a list flag `-rpath` for users to specify runtime library search paths where GHC's linker invocations will look for libraries at load time. Previously, clients (notably Cabal) would add specify runtime search paths directly to the linker via @-optl-Wl,-rpath,/actual/path@, bypassing the compiler abstraction and the special logic GHC has to handle runtime search paths -- that is especially important on macOS (4ff93292). Additionally, this enables a better solution for cabal#7339, for the above reasons. Fixes #24272 and enables fixing #19350
parent
c4f49463
No related branches found
No related tags found
Pipeline #87971 canceled
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- compiler/GHC/Driver/DynFlags.hs 2 additions, 0 deletionscompiler/GHC/Driver/DynFlags.hs
- compiler/GHC/Driver/Session.hs 6 additions, 1 deletioncompiler/GHC/Driver/Session.hs
- compiler/GHC/Linker/Dynamic.hs 8 additions, 3 deletionscompiler/GHC/Linker/Dynamic.hs
- compiler/GHC/Linker/Loader.hs 7 additions, 2 deletionscompiler/GHC/Linker/Loader.hs
- compiler/GHC/Linker/Static.hs 10 additions, 7 deletionscompiler/GHC/Linker/Static.hs
Loading
Please register or sign in to comment