build: Fix golem build to exclude libartd.so from public.libraries.txt
Golem doesn't build libartd.so, so at runtime the JNI loading would fail
when trying to initialize the android library namespaces.
Test: build-art-target-golem
Bug: 31401609
Change-Id: I2ee988e84d0a87b3cd1338d29fc28a874905cccc
diff --git a/Android.mk b/Android.mk
index 8b6f21e..0567b22 100644
--- a/Android.mk
+++ b/Android.mk
@@ -445,6 +445,8 @@
$(ART_TARGET_SHARED_LIBRARY_BENCHMARK) \
$(TARGET_CORE_IMG_OUT_BASE).art \
$(TARGET_CORE_IMG_OUT_BASE)-interpreter.art
+ sed -i '/libartd.so/d' $(TARGET_OUT)/etc/public.libraries.txt
+ # remove libartd.so from public.libraries.txt because golem builds won't have it.
########################################################################
# Phony target for building what go/lem requires on host.