summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 5525d00d2..98c08faa5 100644
--- a/xmake/toolchains/ndk/load.lua
+++ b/xmake/toolchains/ndk/load.lua
@@ -321,8 +321,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