Bug 1360299 - When --enable-hardening is used, --enable-pie will be automatically enabled
r=froydnj
MozReview-Commit-ID: 7QFOTzSlXSj
--- a/build/moz.configure/toolchain.configure
+++ b/build/moz.configure/toolchain.configure
@@ -1003,8 +1003,9 @@ option('--enable-hardening', env='MOZ_SE
help='Enables security hardening compiler options')
@depends('--enable-hardening', c_compiler)
def security_hardening_cflags(value, c_compiler):
if value and c_compiler.type in ['gcc', 'clang']:
return '-fstack-protector-strong'
add_old_configure_assignment('HARDENING_CFLAGS', security_hardening_cflags)
+imply_option('--enable-pie', depends_if('--enable-hardening')(lambda v: v))