diff options
| author | ruki <[email protected]> | 2017-04-01 19:25:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-04-01 19:25:41 +0800 |
| commit | 192de2d5897e8bee0eefecabac637443125ce2a5 (patch) | |
| tree | d8b21f858a96476e7c814b11e6af0c89606866f2 /xmake/tools | |
| parent | e215d77087a81a619a241e24077b5066929a2aa2 (diff) | |
add rpathdirs api
Diffstat (limited to 'xmake/tools')
| -rw-r--r-- | xmake/tools/dmd.lua | 7 | ||||
| -rw-r--r-- | xmake/tools/gcc.lua | 7 | ||||
| -rw-r--r-- | xmake/tools/ldc.lua | 7 |
3 files changed, 21 insertions, 0 deletions
diff --git a/xmake/tools/dmd.lua b/xmake/tools/dmd.lua index 10fb28342..6fb8e8b3b 100644 --- a/xmake/tools/dmd.lua +++ b/xmake/tools/dmd.lua @@ -159,6 +159,13 @@ function nf_linkdir(dir) return "-L-L" .. dir end +-- make the rpathdir flag +function nf_rpathdir(dir) + + -- make it + return "-L-rpath=" .. dir +end + -- make the link command function linkcmd(objectfiles, targetkind, targetfile, flags) 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) diff --git a/xmake/tools/ldc.lua b/xmake/tools/ldc.lua index 0e995017c..531d319be 100644 --- a/xmake/tools/ldc.lua +++ b/xmake/tools/ldc.lua @@ -30,6 +30,13 @@ function init(shellname, kind) -- init super _super.init(shellname or "ldc", kind) + + -- init shflags + _super._g.shflags = { "-shared" } + + -- init cxflags for the kind: shared + _super._g.shared = {} end + |
