summaryrefslogtreecommitdiff
path: root/xmake/modules/core
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-21 11:19:39 +0800
committerruki <[email protected]>2017-07-21 11:19:39 +0800
commit16acef9777032c8cd2cb3ce52b6dd93e1b966113 (patch)
treebf541c7f2976c9105674bcbb2baea468ad4e7fdc /xmake/modules/core
parent16af707201c013f9b1be26bba7aceed349019631 (diff)
fix gcc rpathdir
Diffstat (limited to 'xmake/modules/core')
-rw-r--r--xmake/modules/core/tools/gcc.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 7665f827e..8bcf58799 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -233,7 +233,8 @@ end
-- make the rpathdir flag
function nf_rpathdir(self, dir)
- if self:has_flags("-Wl,-rpath=" .. dir) then
+ local flag = "-Wl,-rpath=" .. dir
+ if self:has_flags(flag) then
return flag
end
end