Blame jdk8199936-pr3591-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x_jdk.patch

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