common/autoconf/toolchain.m4

changeset 965
3ef3f4174c2b
parent 739
0d1e8518c722
child 966
81632308f60d
     1.1 --- a/common/autoconf/toolchain.m4	Tue Jun 25 13:47:00 2013 -0700
     1.2 +++ b/common/autoconf/toolchain.m4	Tue Jul 02 17:38:10 2013 -0700
     1.3 @@ -1093,6 +1093,24 @@
     1.4      [COMPILER_SUPPORTS_TARGET_BITS_FLAG=true],
     1.5      [COMPILER_SUPPORTS_TARGET_BITS_FLAG=false])
     1.6    AC_SUBST(COMPILER_SUPPORTS_TARGET_BITS_FLAG)
     1.7 +
     1.8 +
     1.9 +  # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed in executable.'
    1.10 +  USING_BROKEN_SUSE_LD=no
    1.11 +  if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$GCC" = xyes; then
    1.12 +    AC_MSG_CHECKING([for broken SuSE 'ld' which only understands anonymous version tags in executables])
    1.13 +    echo "SUNWprivate_1.1 { local: *; };" > version-script.map
    1.14 +    echo "int main() { }" > main.c
    1.15 +    if $CXX -Xlinker -version-script=version-script.map main.c 2>&AS_MESSAGE_LOG_FD >&AS_MESSAGE_LOG_FD; then
    1.16 +      AC_MSG_RESULT(no)
    1.17 +      USING_BROKEN_SUSE_LD=no
    1.18 +    else
    1.19 +      AC_MSG_RESULT(yes)
    1.20 +      USING_BROKEN_SUSE_LD=yes
    1.21 +    fi
    1.22 +    rm -rf version-script.map main.c
    1.23 +  fi
    1.24 +  AC_SUBST(USING_BROKEN_SUSE_LD)
    1.25  ])
    1.26  
    1.27  # Setup the JTREG paths

mercurial