Link the C++ standard library correctly.

This commit is contained in:
John Kåre Alsaker
2022-08-12 22:01:54 +02:00
committed by Robert Bragg
parent ecd03edb1a
commit dfc58b49fb
+4
View File
@@ -29,6 +29,10 @@ fn build_glue_for_game_activity() {
.extra_warnings(false)
.cpp_link_stdlib("c++_static")
.compile("libnative_app_glue.a");
// We need to link to both c++_static and c++abi for the static C++ library.
// Ideally we'd link directly to libc++.a.
println!("cargo:rustc-link-lib=c++abi");
}
fn main() {