summaryrefslogtreecommitdiffstats
path: root/core/host_executable.mk
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-09-03 15:01:46 -0700
committerTim Murray <timmurray@google.com>2014-09-03 15:39:50 -0700
commit595d0dbd5bbf18107ee2f18c06b033e3aef9374c (patch)
treec92d2d009b09f6c62808dc3b4bdaa869f778d0fa /core/host_executable.mk
parent2f9fa5202532fb2b5c9ea89a4c15171346f63ec1 (diff)
downloadbuild-595d0dbd5bbf18107ee2f18c06b033e3aef9374c.zip
build-595d0dbd5bbf18107ee2f18c06b033e3aef9374c.tar.gz
build-595d0dbd5bbf18107ee2f18c06b033e3aef9374c.tar.bz2
Add LOCAL_NO_FPIE.
Not all executables should be built with -pie. bug 15814177 Change-Id: I402e8a531866b507ee80a0bf677f9f3551ca7693
Diffstat (limited to 'core/host_executable.mk')
-rw-r--r--core/host_executable.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/host_executable.mk b/core/host_executable.mk
index bf3cde1..0091f3f 100644
--- a/core/host_executable.mk
+++ b/core/host_executable.mk
@@ -13,6 +13,10 @@ endif
endif
endif
+ifeq ($(LOCAL_NO_FPIE),)
+LOCAL_LDFLAGS += $(HOST_FPIE_FLAGS)
+endif
+
ifeq ($(my_module_multilib),both)
ifeq ($(LOCAL_MODULE_PATH_32)$(LOCAL_MODULE_STEM_32),)
$(error $(LOCAL_PATH): LOCAL_MODULE_STEM_32 or LOCAL_MODULE_PATH_32 is required for LOCAL_MULTILIB := both for module $(LOCAL_MODULE))