From cf6f808408fa69d6643fed5a38758cbf22f3b0c0 Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Fri, 19 Dec 2014 16:37:46 -0800 Subject: [PATCH] Disable transitive symbol resolving for arm64. The transitive symbol resolving causes build breakage when a binary has indirect dependency on the NDK library. We only observed such behaviour in the aarch64 toolchain. Change-Id: I29e01f16bdfa3aa206cd42d6f07c764fd436873a --- core/combo/TARGET_linux-arm64.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/combo/TARGET_linux-arm64.mk b/core/combo/TARGET_linux-arm64.mk index 826901091..c1fddb22d 100644 --- a/core/combo/TARGET_linux-arm64.mk +++ b/core/combo/TARGET_linux-arm64.mk @@ -114,6 +114,9 @@ TARGET_GLOBAL_LDFLAGS += \ -Wl,--hash-style=gnu \ $(arch_variant_ldflags) +# Disable transitive dependency library symbol resolving. +TARGET_GLOBAL_LDFLAGS += -Wl,--allow-shlib-undefined + TARGET_GLOBAL_CPPFLAGS += -fvisibility-inlines-hidden # More flags/options can be added here