commit | acf8b0ff009def3466cad8d4244a04bab15e8bcd | [log] [tgz] |
---|---|---|
author | Ryan Prichard <rprichard@google.com> | Mon Oct 21 20:47:53 2019 -0700 |
committer | Ryan Prichard <rprichard@google.com> | Thu Oct 24 18:15:05 2019 -0700 |
tree | 31b92d77d38d41a8b7ab260f44f74b47cc43bcf9 | |
parent | 3322f6ec35b6a795694b2162699bc3d4c401eb00 [diff] |
Stop linking libdl.a into static bins libdl.a has a no-op dlopen, which breaks static libraries that need a real dlopen. Instead of automatically linking libdl.a into static executables, make it optional. Until recently, the libunwind_llvm.a unwinder, used on arm32, needed the no-op dladdr, but it's now built using -D_LIBUNWIND_USE_DLADDR=0. The HWASan run-time uses dlsym and dladdr, so add a libdl dependency for HWASan-built static binaries. We could also remove the dependency from libclang_rt.hwasan_static-*.a, but this is also easy to do. Bug: http://b/141485154 Test: bionic unit tests, device boots, verify that static and dynamic executables can throw/catch an exception Test: verify that a static executable using dlopen doesn't link (unless it adds an explicit dependency on libdl) Change-Id: Id26741f79dca50256a2dc23453af3026a6c88dca
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.