summaryrefslogtreecommitdiff
path: root/xmake/toolchains/ndk/load.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/toolchains/ndk/load.lua')
-rw-r--r--xmake/toolchains/ndk/load.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/toolchains/ndk/load.lua b/xmake/toolchains/ndk/load.lua
index 4e60f0075..93df46e61 100644
--- a/xmake/toolchains/ndk/load.lua
+++ b/xmake/toolchains/ndk/load.lua
@@ -318,8 +318,8 @@ function main(toolchain)
-- The NDK's libc++ now comes directly from our LLVM toolchain above 26b
-- https://github.com/xmake-io/xmake/issues/4614
if ndk_cxxstl == "c++_static" then
- toolchain:add("ldflags", "-static-libstdc++")
- toolchain:add("shflags", "-static-libstdc++")
+ toolchain:add("ldflags", "-static-libstdc++", "-lc++abi")
+ toolchain:add("shflags", "-static-libstdc++", "-lc++abi")
if arm32 then
toolchain:add("syslinks", "unwind", "atomic")
end