[*] amend linux rpath linkage
This commit is contained in:
parent
098027a3c4
commit
c1fec4b1f4
@ -255,7 +255,7 @@ local function configureProjectForLd(prj)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
auFilterForConfigPlatforms(function(config, platform, arch)
|
auFilterForConfigPlatforms(function(config, platformName, arch)
|
||||||
local platform = Aurora.Platforms[platformName]
|
local platform = Aurora.Platforms[platformName]
|
||||||
if (not platform) then
|
if (not platform) then
|
||||||
return
|
return
|
||||||
@ -265,7 +265,8 @@ local function configureProjectForLd(prj)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
linkoptions { "-Wl,-rpath,'$ORIGIN'", "-Wl,-rpath,'/lib'" }
|
linkoptions { "-Wl,-rpath,'$$ORIGIN'",
|
||||||
|
"-Wl,-rpath,'/lib'" }
|
||||||
|
|
||||||
if (arch == "x86_64" or arch == "arm") then
|
if (arch == "x86_64" or arch == "arm") then
|
||||||
linkoptions { "-Wl,-rpath,'/lib64'" }
|
linkoptions { "-Wl,-rpath,'/lib64'" }
|
||||||
@ -281,7 +282,7 @@ local function configureProjectForLd(prj)
|
|||||||
linkoptions { "-Wl,-rpath,'/usr/lib32'" }
|
linkoptions { "-Wl,-rpath,'/usr/lib32'" }
|
||||||
end
|
end
|
||||||
|
|
||||||
linkoptions { "-Wl,-rpath,'$PWD'" }
|
linkoptions { "-Wl,-rpath,'$$PWD'" }
|
||||||
|
|
||||||
linkoptions { "-Wl,-rpath,'/usr/local/lib'" }
|
linkoptions { "-Wl,-rpath,'/usr/local/lib'" }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user