Blame SOURCES/pr3591.patch

95d809
# HG changeset patch
95d809
# User andrew
95d809
# Date 1526489197 -3600
95d809
#      Wed May 16 17:46:37 2018 +0100
95d809
# Node ID 64e87a408afd2b56d59dad73dee28d4b99463810
95d809
# Parent  00ccc73498628a51a45301322e64ce2ad06e49be
95d809
PR3591: Fix for bug 3533 doesn't add -mstackrealign to JDK code
95d809
95d809
diff --git openjdk.orig///common/autoconf/toolchain.m4 openjdk///common/autoconf/toolchain.m4
95d809
--- openjdk.orig///common/autoconf/toolchain.m4
95d809
+++ openjdk///common/autoconf/toolchain.m4
95d809
@@ -794,6 +794,8 @@
95d809
     TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([$REALIGN_CFLAG -Werror], [],
95d809
       AC_MSG_ERROR([The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path.])
95d809
     )
95d809
+    CFLAGS_JDK="${CFLAGS_JDK} ${REALIGN_CFLAG}"
95d809
+    CXXFLAGS_JDK="${CXXFLAGS_JDK} ${REALIGN_CFLAG}"
95d809
     AC_SUBST([REALIGN_CFLAG])
95d809
   fi
95d809