Blame SOURCES/pr3591.patch

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