diff --git a/common/autoconf/generated-configure.sh b/common/autoconf/generated-configure.sh index 47151032873367e16694a450fdaccaa2af776d8a..141c99d17985bd95e0b21c913c190b7877ec16b0 100644 --- a/common/autoconf/generated-configure.sh +++ b/common/autoconf/generated-configure.sh @@ -3672,7 +3672,7 @@ fi #CUSTOM_AUTOCONF_INCLUDE # Do not change or remove the following line, it is needed for consistency checks: -DATE_WHEN_GENERATED=1354104798 +DATE_WHEN_GENERATED=1354106772 ############################################################################### # @@ -27585,9 +27585,11 @@ else -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" # On some platforms (mac) the linker warns about non existing -L dirs. - # Only add client dir if client is being built. Otherwise server should - # be enough - if test "x$JVM_VARIANT_CLIENT" = xtrue; then + # Add server first if available. Linking aginst client does not always produce the same results. + # Only add client dir if client is being built. Default to server for other variants. + if test "x$JVM_VARIANT_SERVER" = xtrue; then + LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" + elif test "x$JVM_VARIANT_CLIENT" = xtrue; then LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" else LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" diff --git a/common/autoconf/toolchain.m4 b/common/autoconf/toolchain.m4 index f345f4ec18a43616a3a7f9832b430cc2f75a65db..406a251167797a5c232d23a09235504b522aa383 100644 --- a/common/autoconf/toolchain.m4 +++ b/common/autoconf/toolchain.m4 @@ -941,9 +941,11 @@ else -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" # On some platforms (mac) the linker warns about non existing -L dirs. - # Only add client dir if client is being built. Otherwise server should - # be enough - if test "x$JVM_VARIANT_CLIENT" = xtrue; then + # Add server first if available. Linking aginst client does not always produce the same results. + # Only add client dir if client is being built. Default to server for other variants. + if test "x$JVM_VARIANT_SERVER" = xtrue; then + LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" + elif test "x$JVM_VARIANT_CLIENT" = xtrue; then LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" else LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" diff --git a/common/bin/compare_exceptions.sh.incl b/common/bin/compare_exceptions.sh.incl index 654c684f43df1f25185a9b5871421b9042103a9f..0127e9a4eb31ba78ebcac3ac979418a1db96fe04 100644 --- a/common/bin/compare_exceptions.sh.incl +++ b/common/bin/compare_exceptions.sh.incl @@ -291,6 +291,14 @@ ACCEPTED_SMALL_SIZE_DIFF=" ./jre/plugin/i386/ns4/libjavaplugin.so ./jre/plugin/i386/ns7/libjavaplugin_oji.so ./jre/lib/i386/server/libjvm.so +./jre/lib/i386/client/64/libjvm_db.so +./jre/lib/i386/client/64/libjvm_dtrace.so +./jre/lib/i386/client/libjvm_db.so +./jre/lib/i386/client/libjvm_dtrace.so +./jre/lib/i386/server/64/libjvm_db.so +./jre/lib/i386/server/64/libjvm_dtrace.so +./jre/lib/i386/server/libjvm_db.so +./jre/lib/i386/server/libjvm_dtrace.so ./bin/appletviewer ./bin/extcheck ./bin/idlj @@ -348,7 +356,9 @@ ACCEPTED_SMALL_SIZE_DIFF=" SKIP_FULLDUMP_DIFF="true" # Filter random C++ symbol strings. -DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}//g" +# Some numbers differ randomly. +# Can't use space in these expressions as the shell will mess with them. +DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}//g -e s/\([0-9a-f][0-9a-f].\)\{2,8\}[0-9a-f][0-9a-f]//g -e s/\(0x\)[0-9a-f]*\([,(>]\)/\1\2/g -e s/\(0x\)[0-9a-f]*$/\1/g -e s/\(\#.\)[0-9a-f]*\(.<\)/\1\2/g -e s/[\.A-Za-z0-9%]\{16,16\}$//g" fi @@ -426,6 +436,9 @@ ACCEPTED_SMALL_SIZE_DIFF=" ./jre/lib/amd64/libzip.so ./jre/lib/amd64/server/64/libjvm_db.so ./jre/lib/amd64/server/64/libjvm_dtrace.so +./jre/lib/amd64/server/libjvm.so +./jre/lib/amd64/server/libjvm_db.so +./jre/lib/amd64/server/libjvm_dtrace.so ./bin/amd64/appletviewer ./bin/amd64/extcheck ./bin/amd64/idlj @@ -480,7 +493,9 @@ ACCEPTED_SMALL_SIZE_DIFF=" SKIP_FULLDUMP_DIFF="true" # Filter random C++ symbol strings. -DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}//g" +# Some numbers differ randomly. +# Can't use space in these expressions as the shell will mess with them. +DIS_DIFF_FILTER="$SED -e s/\.[a-zA-Z0-9_\$]\{15,15\}//g -e s/\([0-9a-f][0-9a-f].\)\{2,8\}[0-9a-f][0-9a-f]//g -e s/\(0x\)[0-9a-f]*\([,(>]\)/\1\2/g -e s/\(0x\)[0-9a-f]*$/\1/g -e s/\(\#.\)[0-9a-f]*\(.<\)/\1\2/g -e s/[\.A-Za-z0-9%]\{16,16\}$//g" fi