diff options
| author | ruki <[email protected]> | 2018-09-04 22:36:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-04 09:36:46 +0800 |
| commit | 08e1b8a09835cba95ba25f40a5a9b4a2a2a55263 (patch) | |
| tree | 2d9753958389932472d3c00fbc58c010b18c483c /xmake/core/tool/builder.lua | |
| parent | 35876060fbf8f1141097b7841c90a5512e85e8a1 (diff) | |
fix rpath for shared library
Diffstat (limited to 'xmake/core/tool/builder.lua')
| -rw-r--r-- | xmake/core/tool/builder.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/tool/builder.lua b/xmake/core/tool/builder.lua index 3aa123188..ac2f5a3b3 100644 --- a/xmake/core/tool/builder.lua +++ b/xmake/core/tool/builder.lua @@ -157,7 +157,7 @@ function builder:_inherit_from_targetdeps(results, target, flagname) -- inherit linkdirs from the depdent target self:_inherit_from_target(results, dep, "linkdirs") - elseif flagname == "rpathdirs" and targetkind == "binary" then + elseif flagname == "rpathdirs" and (targetkind == "binary" or targetkind == "shared") then -- make rpathdir local rpathdir = "@loader_path" |
