diff --git a/core/base_rules.mk b/core/base_rules.mk index c01cde8e9e..e6b8f20785 100644 --- a/core/base_rules.mk +++ b/core/base_rules.mk @@ -713,6 +713,10 @@ ifeq ($(LOCAL_MODULE_CLASS),NATIVE_TESTS) endif ifdef LOCAL_MULTILIB multi_arch := true +else ifeq ($(LOCAL_MODULE_MAKEFILE),$(SOONG_ANDROID_MK)) + ifeq ($(LOCAL_MODULE_CLASS),SHARED_LIBRARIES) + multi_arch := true + endif endif ifdef multi_arch