diff options
| author | ruki <[email protected]> | 2017-04-12 14:30:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-04-12 14:30:18 +0800 |
| commit | d3604af304e6acd9ea32167750373eb94bfa6df0 (patch) | |
| tree | cd05b0d187a684ff33b462b584560c61df05c308 /xmake/platforms/android/load.lua | |
| parent | 1c4b2c9caea676c34d7f0c05b2ea66b8deca9b20 (diff) | |
fix check android compiler error
Diffstat (limited to 'xmake/platforms/android/load.lua')
| -rw-r--r-- | xmake/platforms/android/load.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/platforms/android/load.lua b/xmake/platforms/android/load.lua index e80ff5c89..a9b00b554 100644 --- a/xmake/platforms/android/load.lua +++ b/xmake/platforms/android/load.lua @@ -51,8 +51,8 @@ function main() _g.cxxflags = {} end - -- init cxflags and ldflags for the target kind: binary - _g.binary = { cxflags = {"-fPIE", "-pie"}, ldflags = {"-fPIE", "-pie"} } + -- init cxflags for the target kind: binary + _g.binary = { cxflags = {"-fPIE", "-pie"} } -- add flags for the sdk directory of ndk local ndk = config.get("ndk") @@ -75,6 +75,10 @@ function main() insert(_g.shflags, format("--sysroot=%s/arch-arm", ndk_sdkdir)) end + -- add "-fPIE -pie" to ldflags + insert(_g.ldflags, "-fPIE") + insert(_g.ldflags, "-pie") + -- only for c++ stl local toolchains_ver = config.get("toolchains_ver") if toolchains_ver then |
