autobuild: Add _FORTIFY_SOURCE=2 to the -O3 build
authorAndreas Schneider <asn@samba.org>
Tue, 20 Nov 2018 11:11:43 +0000 (12:11 +0100)
committerGary Lockyer <gary@samba.org>
Wed, 28 Nov 2018 22:19:21 +0000 (23:19 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
script/autobuild.py

index e025a2c19209f9358605837ccc5b42ce2573cee5..9bd48523dbdf39366d00309bdb1c561fe8797b2c 100755 (executable)
@@ -195,7 +195,7 @@ tasks = {
 
     # test build with -O3 -- catches extra warnings and bugs, tests the ad_dc environments
     "samba-o3": [("random-sleep", "script/random-sleep.sh 60 600", "text/plain"),
-                   ("configure", "ADDITIONAL_CFLAGS='-O3' ./configure.developer --with-selftest-prefix=./bin/ab --abi-check-disable" + samba_configure_params, "text/plain"),
+                   ("configure", "ADDITIONAL_CFLAGS='-O3 -Wp,-D_FORTIFY_SOURCE=2' ./configure.developer --with-selftest-prefix=./bin/ab --abi-check-disable" + samba_configure_params, "text/plain"),
                    ("make", "make -j", "text/plain"),
                    ("test", "make quicktest FAIL_IMMEDIATELY=1 "
                     "TESTS='${PY3_ONLY}"