Fix libartbenchmark dependencies
ThinLTO is better at pruning unnecessary symbols. libartbenchmark uses
symbols from libartbase, it cannot get it from libart under global
ThinLTO.
ld.lld: error: undefined symbol: art::MemMap::~MemMap()
>>> referenced by space.h:376 (art/runtime/gc/space/space.h:376)
>>> lto.tmp:(art::gc::space::ContinuousMemMapAllocSpace::~ContinuousMemMapAllocSpace())
>>> referenced by space.h:376 (art/runtime/gc/space/space.h:376)
>>> lto.tmp:(non-virtual thunk to art::gc::space::ContinuousMemMapAllocSpace::~ContinuousMemMapAllocSpace())
>>> referenced by space.h:376 (art/runtime/gc/space/space.h:376)
>>> lto.tmp:(art::gc::space::MemMapSpace::~MemMapSpace())
Bug: 242974292
Test: m libartbenchmark
Change-Id: Ida4fd97b137c6dc1ef43f592c73cb13155d5e09d
diff --git a/benchmark/Android.bp b/benchmark/Android.bp
index d781f84..43f46c3 100644
--- a/benchmark/Android.bp
+++ b/benchmark/Android.bp
@@ -51,6 +51,7 @@
// TODO(ngeoffray): find a way to link against the libraries in the apex.
shared_libs: [
"libart",
+ "libartbase",
"libbase",
],
}