aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunlian Jiang <yunlian@google.com>2017-05-19 21:25:39 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-05-19 21:25:39 +0000
commitb1cc67ac7a641c37dc6e0d6b3e4c080e5659e657 (patch)
tree46130402e600d14a1cb23fba6c027f558fc58fc9
parentfb543f3cb47bdea6c827e2a3eb32bc76ef7387a0 (diff)
parentf65798c69ec518ea6a9d4a2a5567233b0bea0ab2 (diff)
downloadsystem_api-b1cc67ac7a641c37dc6e0d6b3e4c080e5659e657.tar.gz
system_api: use '-fPIC' for libsystem_api-chaps-protos.a am: 1e05a1a9d2 am: aca0299048
am: f65798c69e Change-Id: I282e66bd3fc8a2d39d803c4834e48d45df6e11e8
-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',