diff options
author | Dan Willemsen <dwillemsen@google.com> | 2018-12-03 13:56:50 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2018-12-03 15:47:23 -0800 |
commit | 1f8849fffd9c9cecb163a5db82d7dffb4b8adb24 (patch) | |
tree | da219ebc596f289fd59e4ec5c05e2940f2ffa9ed | |
parent | 13715ae41a9045bf463016c5f86c1448534f2d4a (diff) | |
download | platform_external_jemalloc_new-1f8849fffd9c9cecb163a5db82d7dffb4b8adb24.tar.gz platform_external_jemalloc_new-1f8849fffd9c9cecb163a5db82d7dffb4b8adb24.tar.bz2 platform_external_jemalloc_new-1f8849fffd9c9cecb163a5db82d7dffb4b8adb24.zip |
Prevent dependency cycle due to system_shared_libs expansion
It was discovered that we were building some objects inconsistently due
to an optimization in cc_library to only build objects once and use them
for both the static and shared libraries. But static libraries didn't
get system_shared_libs set automatically, and we didn't notice that we
would have built the objects differently.
So static libraries now get the default system_shared_libs, we allow
adjusting that for static vs shared in a cc_library, and we disable the
optimization if the linked libraries are configured differently between
static and shared in a single cc_library.
This triggers dependency cycles for static libraries that libc/libdl
use, so fix those cycles here.
Test: treehugger
Change-Id: I75cd76db2366179c7e38578210db728e6181442c
-rw-r--r-- | Android.bp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -158,6 +158,7 @@ cc_library { shared: { enabled: false, }, + system_shared_libs: [], }, }, } |