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=1526910855
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}
41473 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41474 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41475 elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41476 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41477 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41478 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41479 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \
41480 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
41481 -DWIN32_LEAN_AND_MEAN \
41482 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
41483 -DWIN32 -DIAL"
41484 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
41485 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
41486 else
41487 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
41488 fi
41489 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
41490 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual
41491 # studio.
41492 if test "x$TOOLCHAIN_VERSION" = "x2010"; then
41493 CXXFLAGS_JDK="$CXXFLAGS_JDK \
41494 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB"
41495 fi
41496 fi
41497
41498 ###############################################################################
41499
41500 # Adjust flags according to debug level.
41501 case $DEBUG_LEVEL in
41502 fastdebug )
41503 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41504 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41505 C_O_FLAG_HI="$C_O_FLAG_NORM"
41506 C_O_FLAG_NORM="$C_O_FLAG_NORM"
41507 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
41508 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
41509 JAVAC_FLAGS="$JAVAC_FLAGS -g"
41510 ;;
41511 slowdebug )
41512 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41513 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
|
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}
41473 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41474 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41475 elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41476 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41477 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41478 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41479 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \
41480 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
41481 -DWIN32_LEAN_AND_MEAN \
41482 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
41483 -DWIN32 -DIAL"
41484 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
41485 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
41486 else
41487 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
41488 fi
41489 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
41490 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual
41491 # studio.
41492 if test "x$TOOLCHAIN_VERSION" = "x2010"; then
41493 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
41494 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB"
41495 fi
41496 fi
41497
41498 ###############################################################################
41499
41500 # Adjust flags according to debug level.
41501 case $DEBUG_LEVEL in
41502 fastdebug )
41503 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41504 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
41505 C_O_FLAG_HI="$C_O_FLAG_NORM"
41506 C_O_FLAG_NORM="$C_O_FLAG_NORM"
41507 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
41508 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
41509 JAVAC_FLAGS="$JAVAC_FLAGS -g"
41510 ;;
41511 slowdebug )
41512 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
41513 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
|