< prev index next >

common/autoconf/flags.m4

Print this page




 459     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
 460     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
 461   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
 462     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
 463     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
 464   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 465     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \
 466         -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
 467         -DWIN32_LEAN_AND_MEAN \
 468         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
 469         -DWIN32 -DIAL"
 470     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
 471       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
 472     else
 473       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
 474     fi
 475     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
 476     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual
 477     # studio.
 478     if test "x$TOOLCHAIN_VERSION" = "x2010"; then
 479       CXXFLAGS_JDK="$CXXFLAGS_JDK \
 480           -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB"
 481     fi
 482   fi
 483 
 484   ###############################################################################
 485 
 486   # Adjust flags according to debug level.
 487   case $DEBUG_LEVEL in
 488     fastdebug )
 489       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
 490       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
 491       C_O_FLAG_HI="$C_O_FLAG_NORM"
 492       C_O_FLAG_NORM="$C_O_FLAG_NORM"
 493       CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
 494       CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
 495       JAVAC_FLAGS="$JAVAC_FLAGS -g"
 496       ;;
 497     slowdebug )
 498       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
 499       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"




 459     CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
 460     CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
 461   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
 462     CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
 463     CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
 464   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
 465     CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK \
 466         -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
 467         -DWIN32_LEAN_AND_MEAN \
 468         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
 469         -DWIN32 -DIAL"
 470     if test "x$OPENJDK_TARGET_CPU" = xx86_64; then
 471       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
 472     else
 473       CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
 474     fi
 475     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
 476     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual
 477     # studio.
 478     if test "x$TOOLCHAIN_VERSION" = "x2010"; then
 479       CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
 480           -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB"
 481     fi
 482   fi
 483 
 484   ###############################################################################
 485 
 486   # Adjust flags according to debug level.
 487   case $DEBUG_LEVEL in
 488     fastdebug )
 489       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
 490       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"
 491       C_O_FLAG_HI="$C_O_FLAG_NORM"
 492       C_O_FLAG_NORM="$C_O_FLAG_NORM"
 493       CXX_O_FLAG_HI="$CXX_O_FLAG_NORM"
 494       CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM"
 495       JAVAC_FLAGS="$JAVAC_FLAGS -g"
 496       ;;
 497     slowdebug )
 498       CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS"
 499       CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS"


< prev index next >