commit | 6f42bc4e062fac8a6e126a89e5b1bf0ab448938d | [log] [tgz] |
---|---|---|
author | Dan Albert <[email protected]> | Tue Jan 17 18:08:39 2023 -0800 |
committer | Dan Albert <[email protected]> | Tue Jan 17 18:11:59 2023 -0800 |
tree | 643cda3439dae478a333622d04a83687ef4b4a80 | |
parent | ae921f120e70b3852c66cca20ba264242911cdf7 [diff] |
Fix build/runtime API level for static exe tests. Static executable tests need this to run correctly. They need to build against the newest API level (there's only one libc.a, which the headers and CRT objects need to match), but can run against any API level. We've been getting away with this for a while because it wasn't as strict, but libc.a now has a dependency on ELF TLS, so we need the newer CRT objects. We were further getting away with it because --gc-sections was stripping the ELF TLS dependency. Bug: https://github.com/android/ndk/issues/1813 Test: this is the test, now it passes Change-Id: Icc984f9fa3dc83ecd8c3dca8789be55bcb487119
The latest version of this document is available at https://android.googlesource.com/platform/ndk/+/master/README.md.
Note: This document is for developers of the NDK, not developers that use the NDK.
The NDK allows Android application developers to include native code in their Android application packages, compiled as JNI shared libraries.
To navigate this site, use the navigation bar at the top of the page. For additional documentation, see the listing for the docs directory. If you're not sure where to start, the Onboarding page will guide you.