Merge "Make PIC/PIE levels compatible for LTO."

This commit is contained in:
Treehugger Robot
2017-04-18 01:48:57 +00:00
committed by Gerrit Code Review

View File

@@ -309,7 +309,7 @@ endif
ifneq ($(LOCAL_NO_PIC),true) ifneq ($(LOCAL_NO_PIC),true)
ifneq ($($(my_prefix)OS),windows) ifneq ($($(my_prefix)OS),windows)
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),) ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
my_cflags += -fpie my_cflags += -fPIE
else else
my_cflags += -fPIC my_cflags += -fPIC
endif endif