aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-12-03 13:56:24 -0800
committerDan Willemsen <dwillemsen@google.com>2018-12-03 15:49:11 -0800
commit35edf4582e96d16113db352b74eebc5d4bfbe0f3 (patch)
treeadcaccb9731736f35b82a01cf9a0fafccfb1c8e3 /Android.bp
parenta17312417be0fc9565314eb715b29e5080e986f5 (diff)
downloadarm-optimized-routines-35edf4582e96d16113db352b74eebc5d4bfbe0f3.tar.gz
Prevent dependency cycle due to system_shared_libs expansionandroid-wear-8.0.0_r2
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: If5cf63ba8c61af3c1cb4a0ad752205b9397d9d28
Diffstat (limited to 'Android.bp')
-rwxr-xr-xAndroid.bp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index e8ded12..2276161 100755
--- a/Android.bp
+++ b/Android.bp
@@ -55,6 +55,9 @@ cc_library {
},
},
stl: "none",
+ static: {
+ system_shared_libs: [],
+ },
}
// adb shell "/data/nativetest64/mathtest/mathtest /data/nativetest64/mathtest/test/testcases/directed/*"