changeset 53358:ab474ef0a0ac

8199552: Update to build scripts Reviewed-by: jwilhelm, mschoene, rhalade Contributed-by: magnus.ihse.bursie@oracle.com
author jwilhelm
date Thu, 13 Sep 2018 01:49:48 +0200
parents b9149d907610
children fd6de53a0d6e
files make/autoconf/flags-cflags.m4
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/make/autoconf/flags-cflags.m4	Mon Oct 08 12:53:53 2018 -0700
+++ b/make/autoconf/flags-cflags.m4	Thu Sep 13 01:49:48 2018 +0200
@@ -526,8 +526,8 @@
   fi
 
   if test "x$TOOLCHAIN_TYPE" = xgcc; then
-    TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fcheck-new"
-    TOOLCHAIN_CFLAGS_JDK="-pipe"
+    TOOLCHAIN_CFLAGS_JVM="$TOOLCHAIN_CFLAGS_JVM -fcheck-new -fstack-protector"
+    TOOLCHAIN_CFLAGS_JDK="-pipe -fstack-protector"
     TOOLCHAIN_CFLAGS_JDK_CONLY="-fno-strict-aliasing" # technically NOT for CXX (but since this gives *worse* performance, use no-strict-aliasing everywhere!)
 
     CXXSTD_CXXFLAG="-std=gnu++98"