Merge "Don't apply --exclude-libs for the host."
diff --git a/core/binary.mk b/core/binary.mk
index 8bb5eff..38fcacc 100644
--- a/core/binary.mk
+++ b/core/binary.mk
@@ -419,8 +419,10 @@
 # Unfortunately --exclude-libs always overrides all other attempts to make a
 # symbol visible, and libc needs to make sure some of these symbols are
 # available for binary compatibility, so libc needs a way to disable this.
-ifneq ($(strip $(LOCAL_NO_EXCLUDE_LIBS)),true)
-  my_ldflags += -Wl,--exclude-libs,libgcc.a
+ifndef LOCAL_IS_HOST_MODULE
+  ifneq ($(strip $(LOCAL_NO_EXCLUDE_LIBS)),true)
+    my_ldflags += -Wl,--exclude-libs,libgcc.a
+  endif
 endif
 
 ifeq (true,$(LOCAL_GROUP_STATIC_LIBRARIES))