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