summaryrefslogtreecommitdiff
path: root/xmake/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-04-01 19:25:41 +0800
committerruki <[email protected]>2017-04-01 19:25:41 +0800
commit192de2d5897e8bee0eefecabac637443125ce2a5 (patch)
treed8b21f858a96476e7c814b11e6af0c89606866f2 /xmake/tools/gcc.lua
parente215d77087a81a619a241e24077b5066929a2aa2 (diff)
add rpathdirs api
Diffstat (limited to 'xmake/tools/gcc.lua')
-rw-r--r--xmake/tools/gcc.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/tools/gcc.lua b/xmake/tools/gcc.lua
index d4dc2d930..a7b447df9 100644
--- a/xmake/tools/gcc.lua
+++ b/xmake/tools/gcc.lua
@@ -241,6 +241,13 @@ function nf_linkdir(dir)
return "-L" .. dir
end
+-- make the rpathdir flag
+function nf_rpathdir(dir)
+
+ -- make it
+ return "-Wl,-rpath=" .. dir
+end
+
-- make the framework flag
function nf_framework(framework)