Bug 1360299 - When --enable-hardening is used, --enable-pie will be automatically enabled r=froydnj
authorAlex Gaynor <agaynor@mozilla.com>
Mon, 01 May 2017 15:00:50 -0400
changeset 356039 f9e0e0d49ced
parent 356038 5f5ec529778a
child 356040 c8ccbff7c112
push id41898
push userryanvm@gmail.com
push dateTue, 02 May 2017 17:13:37 +0000
treeherderautoland@f9e0e0d49ced [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1360299
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1360299 - When --enable-hardening is used, --enable-pie will be automatically enabled r=froydnj r=froydnj MozReview-Commit-ID: 7QFOTzSlXSj
build/moz.configure/toolchain.configure
--- 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))