aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2017-05-19 21:31:45 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-19 21:31:45 +0000
commitc26b8726a9be289c49ef3a7bcc4362aa428ce54b (patch)
tree46130402e600d14a1cb23fba6c027f558fc58fc9
parent45f42080d9bf8e2b06f447c3b9af63aa5b95aa87 (diff)
parentb1cc67ac7a641c37dc6e0d6b3e4c080e5659e657 (diff)
downloadsystem_api-c26b8726a9be289c49ef3a7bcc4362aa428ce54b.tar.gz
system_api: use '-fPIC' for libsystem_api-chaps-protos.a am: 1e05a1a9d2 am: aca0299048 am: f65798c69e
am: b1cc67ac7a Change-Id: I7c3616a17ead49ff74939bd2e7d98dd7af6bc90b
-rw-r--r--system_api.gyp4
1 files changed, 4 insertions, 0 deletions
diff --git a/system_api.gyp b/system_api.gyp
index 4c0951b..fbe6773 100644
--- a/system_api.gyp
+++ b/system_api.gyp
@@ -179,6 +179,10 @@
{
'target_name': 'system_api-chaps-protos',
'type': 'static_library',
+ # system_api-chaps-protos' is used by a shared_library
+ # object, so we need to build it with '-fPIC' instead of '-fPIE'.
+ 'cflags!': ['-fPIE'],
+ 'cflags': ['-fPIC'],
'standalone_static_library': 1,
'dependencies': [
'system_api-chaps-protos-gen',