Add defaults to link libz and liblog correctly in static libraries.
This should fix ODR issues on host while keeping NDK dependencies
accurate on target.
The two defaults have a "_static_defaults" suffix to reflect their
usage pattern: To be inherited into other *_static_defaults to collect
dependencies that eventually gets used in a "top level" shared library
or binary (except in special cases like libdex2oat(d)_static and
libprofman(d)_static where we cannot do that).
Test: art/test/testrunner/run_build_test_target.py -j64 art-gtest-asan
Test: art/test/testrunner/run_build_test_target.py -j64 art-asan
Test: mmm art/ system/extras/simpleperf/ cts/tests/tests/simpleperf/
Bug: 347036796
Flag: TEST_ONLY
Change-Id: Id0d14dc500b88ac8a50f840e9675d160e73d7465
9 files changed