ndk
ndk copied to clipboard
Statically link glibc into NDK
Please link glibc statically into the NDK instead of relying on system one. It would help us a lot if the NDK is more platform independent and ships their used libraries itself.
This wouldn't work. The zygote will have already loaded bionic.
If you're having issues with the system libc, file bugs about that.
... or did you mean the host tools? That's probably something we could/should do.
That is what I mean, yes.
What about a build for arm host? We can use it on Linux on Dex or with Linux Deploy. AIDE provides one but it is a bit old.
What about a build for arm host? We can use it on Linux on Dex or with Linux Deploy. AIDE provides one but it is a bit old.
You're welcome to build your own from source, but that's not something we'll be supporting. https://android.googlesource.com/platform/ndk/+/master/README.md
Is there any chance to plan this change? We would prefer so setup small alpine linux docker images for CI builds. But glibc is missing there.
No plans.
Is there any chance to plan this change?
I think you can try build NDK statically. It will force compiler to keep glibc inside binaries, no matter what libc host uses.
Still no plan?
no. for various reasons, we'll never statically link glibc into anything.
we may statically link musl at some point, but no-one's actively working on that right now, so even if does happen, that's years away.
What about linking host tools to musl statically? It should work fine.
What about linking host tools to musl statically? It should work fine.
like i said five minutes ago:
we may statically link musl at some point, but no-one's actively working on that right now, so even if does happen, that's years away.
I mean: why it is so problematic?
i take it you've never looked at how llvm is built :-)
Is there any chance to plan this change? We would prefer so setup small alpine linux docker images for CI builds. But glibc is missing there.
@SmallLars: Did you confirm that the tools you want to use don't compile against musl? Using prebuilts is clearly not very smart unless there are prebuilts that are built against musl, but thankfully you should be able to build from source. You could also request prebuilts compiled against musl (it's not unheard of for such to be provided)