1091 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does |
1091 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does |
1092 TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([-m${OPENJDK_TARGET_CPU_BITS}], |
1092 TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([-m${OPENJDK_TARGET_CPU_BITS}], |
1093 [COMPILER_SUPPORTS_TARGET_BITS_FLAG=true], |
1093 [COMPILER_SUPPORTS_TARGET_BITS_FLAG=true], |
1094 [COMPILER_SUPPORTS_TARGET_BITS_FLAG=false]) |
1094 [COMPILER_SUPPORTS_TARGET_BITS_FLAG=false]) |
1095 AC_SUBST(COMPILER_SUPPORTS_TARGET_BITS_FLAG) |
1095 AC_SUBST(COMPILER_SUPPORTS_TARGET_BITS_FLAG) |
|
1096 |
|
1097 |
|
1098 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed in executable.' |
|
1099 USING_BROKEN_SUSE_LD=no |
|
1100 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$GCC" = xyes; then |
|
1101 AC_MSG_CHECKING([for broken SuSE 'ld' which only understands anonymous version tags in executables]) |
|
1102 echo "SUNWprivate_1.1 { local: *; };" > version-script.map |
|
1103 echo "int main() { }" > main.c |
|
1104 if $CXX -Xlinker -version-script=version-script.map main.c 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD; then |
|
1105 AC_MSG_RESULT(no) |
|
1106 USING_BROKEN_SUSE_LD=no |
|
1107 else |
|
1108 AC_MSG_RESULT(yes) |
|
1109 USING_BROKEN_SUSE_LD=yes |
|
1110 fi |
|
1111 rm -rf version-script.map main.c |
|
1112 fi |
|
1113 AC_SUBST(USING_BROKEN_SUSE_LD) |
1096 ]) |
1114 ]) |
1097 |
1115 |
1098 # Setup the JTREG paths |
1116 # Setup the JTREG paths |
1099 AC_DEFUN_ONCE([TOOLCHAIN_SETUP_JTREG], |
1117 AC_DEFUN_ONCE([TOOLCHAIN_SETUP_JTREG], |
1100 [ |
1118 [ |