Disable packed relocations for NDK builds
Bug: http://b/20537715 Change-Id: I1289a88d5eb694980b026b695cb25edd8ba76ed5
This commit is contained in:
parent
648f1b66b4
commit
3b51f20be9
1 changed files with 4 additions and 2 deletions
|
@ -77,10 +77,12 @@ ifdef LOCAL_SDK_VERSION
|
|||
my_ndk_sysroot_lib := $(my_ndk_sysroot)/usr/lib
|
||||
endif
|
||||
|
||||
# The bionic linker now has support for gnu style hashes (which are much
|
||||
# faster!), but shipping to older devices requires the old style hash.
|
||||
# The bionic linker now has support for packed relocations and gnu style
|
||||
# hashes (which are much faster!), but shipping to older devices requires
|
||||
# the old style hash and disabling packed relocations.
|
||||
#ifeq ($(shell expr $(LOCAL_SDK_VERSION) >= FIRST_SUPPORTED_VERSION),0)
|
||||
my_ldflags += -Wl,--hash-style=sysv
|
||||
LOCAL_PACK_MODULE_RELOCATIONS := false
|
||||
#endif
|
||||
|
||||
# Set up the NDK stl variant. Starting from NDK-r5 the c++ stl resides in a separate location.
|
||||
|
|
Loading…
Reference in a new issue