Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1576da24 authored by Dan Albert's avatar Dan Albert
Browse files

Don't apply --exclude-libs for the host.

The Mac linker doesn't support this flag, and we don't actually need
it there anyway because we link dynamically to the system's compiler
runtime lib.

Bug: http://b/24166967
Change-Id: I62a926ed39d9fc487638e0c1a172762503dd633e
parent c496b259
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -419,9 +419,11 @@ 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
endif

ifeq (true,$(LOCAL_GROUP_STATIC_LIBRARIES))
$(LOCAL_BUILT_MODULE): PRIVATE_GROUP_STATIC_LIBRARIES := true