Skip to content

Commit 8c7a84c

Browse files
committed
fixup! compiler: inject rpath for the rts as needed.
1 parent a03584d commit 8c7a84c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/GHC/Linker/Static.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ linkBinary' staticLink logger tmpfs dflags unit_env o_files dep_units = do
115115
]
116116
get_pkg_lib_path_opts pkg l
117117
| osElfTarget (platformOS platform) &&
118-
(dynLibLoader dflags == SystemDependent || unitPackageNameString pkg == rts) &&
118+
(dynLibLoader dflags == SystemDependent || unitPackageNameString pkg == "rts") &&
119119
ways_ `hasWay` WayDyn
120120
= let libpath = if gopt Opt_RelativeDynlibPaths dflags
121121
then "$ORIGIN" </>
@@ -136,7 +136,7 @@ linkBinary' staticLink logger tmpfs dflags unit_env o_files dep_units = do
136136
else ["-Xlinker", "-rpath-link", "-Xlinker", l]
137137
in ["-L" ++ l] ++ rpathlink ++ rpath
138138
| osMachOTarget (platformOS platform) &&
139-
(dynLibLoader dflags == SystemDependent || unitPackageNameString pkg == rts) &&
139+
(dynLibLoader dflags == SystemDependent || unitPackageNameString pkg == "rts") &&
140140
ways_ `hasWay` WayDyn &&
141141
useXLinkerRPath dflags (platformOS platform)
142142
= let libpath = if gopt Opt_RelativeDynlibPaths dflags

0 commit comments

Comments
 (0)