common/autoconf/generated-configure.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk9-dev Sdiff common/autoconf

common/autoconf/generated-configure.sh

Print this page




4226 
4227 # Check if the VS env variables were setup prior to running configure.
4228 # If not, then find vcvarsall.bat and run it automatically, and integrate
4229 # the set env variables into the spec file.
4230 
4231 
4232 
4233 
4234 
4235 
4236 
4237 
4238 
4239 
4240 # This line needs to be here, verbatim, after all includes and the dummy hook
4241 # definitions. It is replaced with custom functionality when building
4242 # custom sources.
4243 #CUSTOM_AUTOCONF_INCLUDE
4244 
4245 # Do not change or remove the following line, it is needed for consistency checks:
4246 DATE_WHEN_GENERATED=1396624161
4247 
4248 ###############################################################################
4249 #
4250 # Initialization / Boot-strapping
4251 #
4252 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4253 # thus it jumps back and forth, each time gaining something needed later on.
4254 #
4255 ###############################################################################
4256 
4257 # If we are requested to print additional help, do that and then exit.
4258 # This must be the very first call.
4259 
4260   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4261     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4262     $PRINTF "Which are valid to use depends on the build platform.\n"
4263     for toolchain in $VALID_TOOLCHAINS_all; do
4264       # Use indirect variable referencing
4265       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4266       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


41645 
41646 
41647   ###############################################################################
41648   #
41649   # Now setup the CFLAGS and LDFLAGS for the JDK build.
41650   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
41651   #
41652 
41653   # Setup compiler/platform specific flags to CFLAGS_JDK,
41654   # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?)
41655   if test "x$TOOLCHAIN_TYPE" = xgcc; then
41656     # these options are used for both C and C++ compiles
41657     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
41658         -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
41659     case $OPENJDK_TARGET_CPU_ARCH in
41660       arm )
41661         # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
41662         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41663         ;;
41664       ppc )
41665         # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing

41666         ;;
41667       * )
41668         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
41669         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41670         ;;
41671     esac
41672   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41673     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
41674     if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
41675       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
41676       CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
41677     fi
41678 
41679     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41680     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41681   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41682     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41683     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41684   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41685     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \




4226 
4227 # Check if the VS env variables were setup prior to running configure.
4228 # If not, then find vcvarsall.bat and run it automatically, and integrate
4229 # the set env variables into the spec file.
4230 
4231 
4232 
4233 
4234 
4235 
4236 
4237 
4238 
4239 
4240 # This line needs to be here, verbatim, after all includes and the dummy hook
4241 # definitions. It is replaced with custom functionality when building
4242 # custom sources.
4243 #CUSTOM_AUTOCONF_INCLUDE
4244 
4245 # Do not change or remove the following line, it is needed for consistency checks:
4246 DATE_WHEN_GENERATED=1398121836
4247 
4248 ###############################################################################
4249 #
4250 # Initialization / Boot-strapping
4251 #
4252 # The bootstrapping process needs to solve the "chicken or the egg" problem,
4253 # thus it jumps back and forth, each time gaining something needed later on.
4254 #
4255 ###############################################################################
4256 
4257 # If we are requested to print additional help, do that and then exit.
4258 # This must be the very first call.
4259 
4260   if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then
4261     $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n"
4262     $PRINTF "Which are valid to use depends on the build platform.\n"
4263     for toolchain in $VALID_TOOLCHAINS_all; do
4264       # Use indirect variable referencing
4265       toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain
4266       TOOLCHAIN_DESCRIPTION=${!toolchain_var_name}


41645 
41646 
41647   ###############################################################################
41648   #
41649   # Now setup the CFLAGS and LDFLAGS for the JDK build.
41650   # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
41651   #
41652 
41653   # Setup compiler/platform specific flags to CFLAGS_JDK,
41654   # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?)
41655   if test "x$TOOLCHAIN_TYPE" = xgcc; then
41656     # these options are used for both C and C++ compiles
41657     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \
41658         -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
41659     case $OPENJDK_TARGET_CPU_ARCH in
41660       arm )
41661         # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing
41662         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41663         ;;
41664       ppc )
41665         # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing
41666         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41667         ;;
41668       * )
41669         CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer"
41670         CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing"
41671         ;;
41672     esac
41673   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
41674     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
41675     if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then
41676       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB"
41677       CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE"
41678     fi
41679 
41680     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
41681     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
41682   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
41683     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41684     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
41685   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
41686     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \


common/autoconf/generated-configure.sh
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File