aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2017-05-19 21:37:46 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-19 21:37:46 +0000
commit7c1b35ce532396815568ac07b3781949f462a7bd (patch)
tree46130402e600d14a1cb23fba6c027f558fc58fc9
parenta159fd843e62b751f2eb22a1203b2f9a36e9333e (diff)
parentc26b8726a9be289c49ef3a7bcc4362aa428ce54b (diff)
downloadsystem_api-7c1b35ce532396815568ac07b3781949f462a7bd.tar.gz
system_api: use '-fPIC' for libsystem_api-chaps-protos.a am: 1e05a1a9d2 am: aca0299048 am: f65798c69e am: b1cc67ac7a
am: c26b8726a9 Change-Id: Idce0832275b400d4f70cafd8b4a8998b5bf15099
-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',