8144278: [TESTBUG] hotspot/runtime/StackGuardPages/testme.sh should use native library build support
Reviewed-by: erikj, dsamersoff, dholmes
This commit is contained in:
parent
7494c3e82b
commit
03321f4a59
@ -684,7 +684,7 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK],
|
|||||||
AC_SUBST(CXXFLAGS_TESTEXE)
|
AC_SUBST(CXXFLAGS_TESTEXE)
|
||||||
|
|
||||||
LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB"
|
LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB"
|
||||||
LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE"
|
LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS"
|
||||||
|
|
||||||
AC_SUBST(LDFLAGS_TESTLIB)
|
AC_SUBST(LDFLAGS_TESTLIB)
|
||||||
AC_SUBST(LDFLAGS_TESTEXE)
|
AC_SUBST(LDFLAGS_TESTEXE)
|
||||||
@ -1148,11 +1148,11 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER],
|
|||||||
|
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}"
|
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}"
|
||||||
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} \
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} \
|
||||||
-libpath:${OUTPUT_ROOT}/support/modules_libs/java.base"
|
-libpath:${OUTPUT_ROOT}/support/modules_libs/java.base"
|
||||||
$2JDKLIB_LIBS=""
|
$2JDKLIB_LIBS=""
|
||||||
else
|
else
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} \
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} \
|
||||||
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)"
|
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)"
|
||||||
|
|
||||||
if test "x$1" = "xTARGET"; then
|
if test "x$1" = "xTARGET"; then
|
||||||
@ -1161,17 +1161,17 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER],
|
|||||||
# Only add client/minimal dir if client/minimal is being built.
|
# Only add client/minimal dir if client/minimal is being built.
|
||||||
# Default to server for other variants.
|
# Default to server for other variants.
|
||||||
if HOTSPOT_CHECK_JVM_VARIANT(server); then
|
if HOTSPOT_CHECK_JVM_VARIANT(server); then
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/server"
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/server"
|
||||||
elif HOTSPOT_CHECK_JVM_VARIANT(client); then
|
elif HOTSPOT_CHECK_JVM_VARIANT(client); then
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/client"
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/client"
|
||||||
elif HOTSPOT_CHECK_JVM_VARIANT(minimal); then
|
elif HOTSPOT_CHECK_JVM_VARIANT(minimal); then
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/minimal"
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/minimal"
|
||||||
else
|
else
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/server"
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/server"
|
||||||
fi
|
fi
|
||||||
elif test "x$1" = "xBUILD"; then
|
elif test "x$1" = "xBUILD"; then
|
||||||
# When building a buildjdk, it's always only the server variant
|
# When building a buildjdk, it's always only the server variant
|
||||||
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} \
|
$2JAVA_BASE_LDFLAGS="${$2JAVA_BASE_LDFLAGS} \
|
||||||
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/server"
|
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_$1_CPU_LIBDIR)/server"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -1182,6 +1182,8 @@ AC_DEFUN([FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER],
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
$2LDFLAGS_JDKLIB="${$2LDFLAGS_JDKLIB} ${$2JAVA_BASE_LDFLAGS}"
|
||||||
|
|
||||||
# Set $2JVM_LIBS (per os)
|
# Set $2JVM_LIBS (per os)
|
||||||
if test "x$OPENJDK_$1_OS" = xlinux; then
|
if test "x$OPENJDK_$1_OS" = xlinux; then
|
||||||
$2JVM_LIBS="[$]$2JVM_LIBS -lm -ldl -lpthread"
|
$2JVM_LIBS="[$]$2JVM_LIBS -lm -ldl -lpthread"
|
||||||
|
@ -50429,11 +50429,11 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
|
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}"
|
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}"
|
||||||
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \
|
||||||
-libpath:${OUTPUT_ROOT}/support/modules_libs/java.base"
|
-libpath:${OUTPUT_ROOT}/support/modules_libs/java.base"
|
||||||
JDKLIB_LIBS=""
|
JDKLIB_LIBS=""
|
||||||
else
|
else
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \
|
||||||
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)"
|
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)"
|
||||||
|
|
||||||
if test "xTARGET" = "xTARGET"; then
|
if test "xTARGET" = "xTARGET"; then
|
||||||
@ -50442,17 +50442,17 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
# Only add client/minimal dir if client/minimal is being built.
|
# Only add client/minimal dir if client/minimal is being built.
|
||||||
# Default to server for other variants.
|
# Default to server for other variants.
|
||||||
if [[ " $JVM_VARIANTS " =~ " server " ]] ; then
|
if [[ " $JVM_VARIANTS " =~ " server " ]] ; then
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server"
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server"
|
||||||
elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then
|
elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client"
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/client"
|
||||||
elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then
|
elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal"
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/minimal"
|
||||||
else
|
else
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server"
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server"
|
||||||
fi
|
fi
|
||||||
elif test "xTARGET" = "xBUILD"; then
|
elif test "xTARGET" = "xBUILD"; then
|
||||||
# When building a buildjdk, it's always only the server variant
|
# When building a buildjdk, it's always only the server variant
|
||||||
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} \
|
JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \
|
||||||
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server"
|
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_TARGET_CPU_LIBDIR)/server"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -50463,6 +50463,8 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}"
|
||||||
|
|
||||||
# Set JVM_LIBS (per os)
|
# Set JVM_LIBS (per os)
|
||||||
if test "x$OPENJDK_TARGET_OS" = xlinux; then
|
if test "x$OPENJDK_TARGET_OS" = xlinux; then
|
||||||
JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread"
|
JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread"
|
||||||
@ -51246,11 +51248,11 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
|
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}"
|
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}"
|
||||||
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \
|
||||||
-libpath:${OUTPUT_ROOT}/support/modules_libs/java.base"
|
-libpath:${OUTPUT_ROOT}/support/modules_libs/java.base"
|
||||||
OPENJDK_BUILD_JDKLIB_LIBS=""
|
OPENJDK_BUILD_JDKLIB_LIBS=""
|
||||||
else
|
else
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \
|
||||||
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)"
|
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)"
|
||||||
|
|
||||||
if test "xBUILD" = "xTARGET"; then
|
if test "xBUILD" = "xTARGET"; then
|
||||||
@ -51259,17 +51261,17 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
# Only add client/minimal dir if client/minimal is being built.
|
# Only add client/minimal dir if client/minimal is being built.
|
||||||
# Default to server for other variants.
|
# Default to server for other variants.
|
||||||
if [[ " $JVM_VARIANTS " =~ " server " ]] ; then
|
if [[ " $JVM_VARIANTS " =~ " server " ]] ; then
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server"
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server"
|
||||||
elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then
|
elif [[ " $JVM_VARIANTS " =~ " client " ]] ; then
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client"
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/client"
|
||||||
elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then
|
elif [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal"
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/minimal"
|
||||||
else
|
else
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server"
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server"
|
||||||
fi
|
fi
|
||||||
elif test "xBUILD" = "xBUILD"; then
|
elif test "xBUILD" = "xBUILD"; then
|
||||||
# When building a buildjdk, it's always only the server variant
|
# When building a buildjdk, it's always only the server variant
|
||||||
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} \
|
OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \
|
||||||
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server"
|
-L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base\$(OPENJDK_BUILD_CPU_LIBDIR)/server"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -51280,6 +51282,8 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}"
|
||||||
|
|
||||||
# Set OPENJDK_BUILD_JVM_LIBS (per os)
|
# Set OPENJDK_BUILD_JVM_LIBS (per os)
|
||||||
if test "x$OPENJDK_BUILD_OS" = xlinux; then
|
if test "x$OPENJDK_BUILD_OS" = xlinux; then
|
||||||
OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread"
|
OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread"
|
||||||
@ -51344,7 +51348,7 @@ $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLA
|
|||||||
|
|
||||||
|
|
||||||
LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB"
|
LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB"
|
||||||
LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE"
|
LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -704,7 +704,7 @@ else
|
|||||||
|
|
||||||
test-image-failure-handler: build-test-failure-handler
|
test-image-failure-handler: build-test-failure-handler
|
||||||
|
|
||||||
build-test-hotspot-jtreg-native: buildtools-jdk
|
build-test-hotspot-jtreg-native: buildtools-jdk import-hotspot
|
||||||
|
|
||||||
build-test-jdk-jtreg-native: buildtools-jdk
|
build-test-jdk-jtreg-native: buildtools-jdk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user