[*] amend linux rpath linkage

This commit is contained in:
Reece Wilson 2022-04-05 21:40:24 +01:00
parent 098027a3c4
commit c1fec4b1f4

View File

@ -255,7 +255,7 @@ local function configureProjectForLd(prj)
return
end
auFilterForConfigPlatforms(function(config, platform, arch)
auFilterForConfigPlatforms(function(config, platformName, arch)
local platform = Aurora.Platforms[platformName]
if (not platform) then
return
@ -265,7 +265,8 @@ local function configureProjectForLd(prj)
return
end
linkoptions { "-Wl,-rpath,'$ORIGIN'", "-Wl,-rpath,'/lib'" }
linkoptions { "-Wl,-rpath,'$$ORIGIN'",
"-Wl,-rpath,'/lib'" }
if (arch == "x86_64" or arch == "arm") then
linkoptions { "-Wl,-rpath,'/lib64'" }
@ -281,7 +282,7 @@ local function configureProjectForLd(prj)
linkoptions { "-Wl,-rpath,'/usr/lib32'" }
end
linkoptions { "-Wl,-rpath,'$PWD'" }
linkoptions { "-Wl,-rpath,'$$PWD'" }
linkoptions { "-Wl,-rpath,'/usr/local/lib'" }