< prev index next >

common/autoconf/generated-configure.sh

Print this page




4288 
4289 
4290 
4291 
4292 
4293 
4294 
4295 
4296 
4297 
4298 
4299 
4300 
4301 
4302 # This line needs to be here, verbatim, after all includes and the dummy hook
4303 # definitions. It is replaced with custom functionality when building
4304 # custom sources.
4305 #CUSTOM_AUTOCONF_INCLUDE
4306 
4307 # Do not change or remove the following line, it is needed for consistency checks:
4308 DATE_WHEN_GENERATED=1527191982
4309 
4310 ###############################################################################
4311 #
4312 # Initialization / Boot-strapping
4313 #
4314 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4315 # thus it jumps back and forth, each time gaining something needed later on.
4316 #
4317 ###############################################################################
4318 
4319 # If we are requested to print additional help, do that and then exit.
4320 # This must be the very first call.
4321 
4322   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4323     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4324     $PRINTF "Which are valid to use depends on the build platform.\n"
4325     for toolchain in $VALID_TOOLCHAINS_all; do
4326       # Use indirect variable referencing
4327       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4328       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


41637       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
41638     fi
41639     # TODO: make -debug optional "--disable-full-debug-symbols"
41640     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
41641     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
41642     LDFLAGS_JDKLIB_SUFFIX=""
41643     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
41644       LDFLAGS_STACK_SIZE=1048576
41645     else
41646       LDFLAGS_STACK_SIZE=327680
41647     fi
41648     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
41649   else
41650     if test "x$TOOLCHAIN_TYPE" = xgcc; then
41651       # If this is a --hash-style=gnu system, use --hash-style=both, why?
41652       # We have previously set HAS_GNU_HASH if this is the case
41653       if test -n "$HAS_GNU_HASH"; then
41654         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
41655       fi
41656       if test "x$OPENJDK_TARGET_OS" = xlinux; then
41657         # And since we now know that the linker is gnu, then add -z defs, to forbid
41658         # undefined symbols in object files.
41659         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs"

41660         if test "x$DEBUG_LEVEL" = "xrelease"; then
41661           # When building release libraries, tell the linker optimize them.
41662           # Should this be supplied to the OSS linker as well?
41663           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
41664         fi
41665       fi
41666     fi
41667 
41668     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41669       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
41670       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
41671     fi
41672 
41673     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
41674         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
41675 
41676     # On some platforms (mac) the linker warns about non existing -L dirs.
41677     # Add server first if available. Linking aginst client does not always produce the same results.
41678     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
41679     # Default to server for other variants.




4288 
4289 
4290 
4291 
4292 
4293 
4294 
4295 
4296 
4297 
4298 
4299 
4300 
4301 
4302 # This line needs to be here, verbatim, after all includes and the dummy hook
4303 # definitions. It is replaced with custom functionality when building
4304 # custom sources.
4305 #CUSTOM_AUTOCONF_INCLUDE
4306 
4307 # Do not change or remove the following line, it is needed for consistency checks:
4308 DATE_WHEN_GENERATED=1527649790
4309 
4310 ###############################################################################
4311 #
4312 # Initialization / Boot-strapping
4313 #
4314 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4315 # thus it jumps back and forth, each time gaining something needed later on.
4316 #
4317 ###############################################################################
4318 
4319 # If we are requested to print additional help, do that and then exit.
4320 # This must be the very first call.
4321 
4322   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4323     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4324     $PRINTF "Which are valid to use depends on the build platform.\n"
4325     for toolchain in $VALID_TOOLCHAINS_all; do
4326       # Use indirect variable referencing
4327       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4328       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


41637       LDFLAGS_JDK="$LDFLAGS_JDK -safeseh"
41638     fi
41639     # TODO: make -debug optional "--disable-full-debug-symbols"
41640     LDFLAGS_JDK="$LDFLAGS_JDK -debug"
41641     LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib"
41642     LDFLAGS_JDKLIB_SUFFIX=""
41643     if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then
41644       LDFLAGS_STACK_SIZE=1048576
41645     else
41646       LDFLAGS_STACK_SIZE=327680
41647     fi
41648     LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE"
41649   else
41650     if test "x$TOOLCHAIN_TYPE" = xgcc; then
41651       # If this is a --hash-style=gnu system, use --hash-style=both, why?
41652       # We have previously set HAS_GNU_HASH if this is the case
41653       if test -n "$HAS_GNU_HASH"; then
41654         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both "
41655       fi
41656       if test "x$OPENJDK_TARGET_OS" = xlinux; then
41657         # And since we now know that the linker is gnu, then add:
41658         #   -z defs, to forbid undefined symbols in object files
41659         #   -z noexecstack, to mark stack regions as non-executable
41660         LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs -Xlinker -z -Xlinker noexecstack"
41661         if test "x$DEBUG_LEVEL" = "xrelease"; then
41662           # When building release libraries, tell the linker optimize them.
41663           # Should this be supplied to the OSS linker as well?
41664           LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1"
41665         fi
41666       fi
41667     fi
41668 
41669     if test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41670       LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext"
41671       LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib"
41672     fi
41673 
41674     LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \
41675         -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}"
41676 
41677     # On some platforms (mac) the linker warns about non existing -L dirs.
41678     # Add server first if available. Linking aginst client does not always produce the same results.
41679     # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1.
41680     # Default to server for other variants.


< prev index next >