Closed fengys1996 closed 6 months ago
Android >= 21 seems to include the declaration of pthread_atfork
, maybe it should be marked as weak on jemalloc side.
Android >= 21 seems to include the declaration of
pthread_atfork
, maybe it should be marked as weak on jemalloc side.
This may introduce unstable feature #![feature(linkage)]
.
Not necessary. The function can be put into a C file and be built by build script.
Problems encountered
Compile
aarch64-linux-android
binary on linux.Specify profile as release, and it will compile normally. However, if
lto = "thin"
is specified, an error will be reported. The details are as follows:How to reproduce
main.rs
Cargo.toml
ANDROID_NDK_HOME
environment variable.cargo ndk --platform 23 -t aarch64-linux-android build --profile release
is ok.cargo ndk --platform 23 -t aarch64-linux-android build --profile nightly
is wrong.I tried removing this part of the code and it works fine.