|
|
@ -22,7 +22,7 @@ diff --git openjdk.orig///common/autoconf/flags.m4 openjdk///common/autoconf/fla
|
|
|
|
+ # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
|
|
|
|
+ # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
|
|
|
|
+ # While waiting for a better solution, the current workaround is to use -mstackrealign
|
|
|
|
+ # While waiting for a better solution, the current workaround is to use -mstackrealign
|
|
|
|
+ # This is also required on Linux systems which use libraries compiled with SSE instructions
|
|
|
|
+ # This is also required on Linux systems which use libraries compiled with SSE instructions
|
|
|
|
+ REALIGN_CFLAG="-mincoming-stack-boundary=2 -mpreferred-stack-boundary=4"
|
|
|
|
+ REALIGN_CFLAG="-mstackrealign"
|
|
|
|
+ FLAGS_COMPILER_CHECK_ARGUMENTS([$REALIGN_CFLAG -Werror], [],
|
|
|
|
+ FLAGS_COMPILER_CHECK_ARGUMENTS([$REALIGN_CFLAG -Werror], [],
|
|
|
|
+ AC_MSG_ERROR([The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path.])
|
|
|
|
+ AC_MSG_ERROR([The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path.])
|
|
|
|
+ )
|
|
|
|
+ )
|
|
|
|