Skip to content
Snippets Groups Projects
Commit 157eee09 authored by Rodrigo Mesquita's avatar Rodrigo Mesquita :seedling:
Browse files

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
1 merge request!11801Draft: Adding -rpath to GHC
Pipeline #87971 canceled
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment