Blame SOURCES/jdk8223219-fstack-protector-root.patch

7a39b1
diff --git a/common/autoconf/flags.m4 b/common/autoconf/flags.m4
7a39b1
--- openjdk.orig/common/autoconf/flags.m4
7a39b1
+++ openjdk/common/autoconf/flags.m4
7a39b1
@@ -388,16 +388,8 @@
7a39b1
     CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
7a39b1
     CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt"
7a39b1
   elif test "x$TOOLCHAIN_TYPE" = xgcc; then
7a39b1
-    case $OPENJDK_TARGET_CPU_ARCH in
7a39b1
-    x86 )
7a39b1
-      LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector"
7a39b1
-      LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector"
7a39b1
-      ;;
7a39b1
-    x86_64 )
7a39b1
-      LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector"
7a39b1
-      LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector"
7a39b1
-      ;;
7a39b1
-    esac
7a39b1
+    LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS -fstack-protector"
7a39b1
+    LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS -fstack-protector"
7a39b1
     if test "x$OPENJDK_TARGET_OS" != xmacosx; then
7a39b1
       LDFLAGS_JDK="$LDFLAGS_JDK -Wl,-z,relro"
7a39b1
       LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS -Wl,-z,relro"
7a39b1
@@ -464,10 +456,6 @@
7a39b1
       ppc )
7a39b1
         # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing
7a39b1
         ;;
7a39b1
-      x86 )
7a39b1
-        CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer -fstack-protector"
7a39b1
-        CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing -fstack-protector"
7a39b1
-        ;;
7a39b1
       * )
7a39b1
         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
7a39b1
         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"