summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2018-11-14 22:57:30 +0800
committerruki <[email protected]>2018-11-14 11:45:02 +0800
commitb99e1e45c904f9a80e4c36eb93ec8b21e59fd640 (patch)
treef1d93f61763a8828edf90d663f4b471b36e4d780
parent02793072039fd85244ed060aebfcc21240e714b0 (diff)
fix stl links for android ndk r19
-rw-r--r--xmake/platforms/android/load.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/platforms/android/load.lua b/xmake/platforms/android/load.lua
index 6ed977f2f..cd8215946 100644
--- a/xmake/platforms/android/load.lua
+++ b/xmake/platforms/android/load.lua
@@ -132,8 +132,8 @@ function main(platform)
platform:add("ldflags", format("-L%s/libs/%s", cxxstl_sdkdir, toolchains_archs[arch]))
platform:add("shflags", format("-L%s/libs/%s", cxxstl_sdkdir, toolchains_archs[arch]))
if cxxstl_sdkdir:find("llvm-libc++", 1, true) then
- platform:add("ldflags", "-lc++")
- platform:add("shflags", "-lc++")
+ platform:add("ldflags", "-lc++_static", "-lc++abi", "-landroid_support")
+ platform:add("shflags", "-lc++_static", "-lc++abi", "-landroid_support")
else
platform:add("ldflags", "-lgnustl_static")
platform:add("shflags", "-lgnustl_static")