OSDN Git Service

Revert "Don't apply --exclude-libs for the host."
authorDan Albert <danalbert@google.com>
Wed, 23 Sep 2015 23:17:15 +0000 (16:17 -0700)
committerDan Albert <danalbert@google.com>
Wed, 23 Sep 2015 23:18:03 +0000 (16:18 -0700)
This reverts commit 1576da248c4a061d906778c2c1dac7478abcc510.

Bug: http://b/24166967
Change-Id: Ibd7eec5c261e85a0474243991be7ee1860c9e14d

core/binary.mk

index 38fcacc..8bb5eff 100644 (file)
@@ -419,10 +419,8 @@ endif
 # 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.
-ifndef LOCAL_IS_HOST_MODULE
-  ifneq ($(strip $(LOCAL_NO_EXCLUDE_LIBS)),true)
-    my_ldflags += -Wl,--exclude-libs,libgcc.a
-  endif
+ifneq ($(strip $(LOCAL_NO_EXCLUDE_LIBS)),true)
+  my_ldflags += -Wl,--exclude-libs,libgcc.a
 endif
 
 ifeq (true,$(LOCAL_GROUP_STATIC_LIBRARIES))