Index: build/android.gypi |
diff --git a/build/android.gypi b/build/android.gypi |
index 73ac93a434adceeca22eb79841a4e7663238e18c..6c5ccbd5a0599c1bd7fe8f596e3482f5555318d7 100644 |
--- a/build/android.gypi |
+++ b/build/android.gypi |
@@ -215,6 +215,15 @@ |
'-fno-stack-protector', |
], |
}], |
+ ['target_arch=="arm64" or target_arch=="x64"', { |
+ # TODO(ulan): Enable PIE for other architectures (crbug.com/373219). |
+ 'cflags': [ |
+ '-fPIE', |
+ ], |
+ 'ldflags': [ |
+ '-pie', |
+ ], |
+ }], |
], |
'target_conditions': [ |
['_type=="executable"', { |