diff options
Diffstat (limited to 'compiler/main/SysTools.hs')
-rw-r--r-- | compiler/main/SysTools.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/main/SysTools.hs b/compiler/main/SysTools.hs index ea3c461327..5bd9fd1f47 100644 --- a/compiler/main/SysTools.hs +++ b/compiler/main/SysTools.hs @@ -1588,7 +1588,8 @@ linkDynLib dflags0 o_files dep_packages osMachOTarget (platformOS (targetPlatform dflags)) ) && dynLibLoader dflags == SystemDependent && WayDyn `elem` ways dflags - = ["-L" ++ l, "-Wl,-rpath", "-Wl," ++ l] + = ["-L" ++ l, "-Xlinker", "-rpath", "-Xlinker", l] + -- See Note [-Xlinker -rpath vs -Wl,-rpath] | otherwise = ["-L" ++ l] let lib_paths = libraryPaths dflags |