< prev index next >

make/autoconf/flags.m4

Move definition to the build system

911     fi                                                                                                                     
912   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then                                                                          
913     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DSPARC_WORKS"                                                                           
914     $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS [$]$2COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"       
915     if test "x$OPENJDK_$1_CPU_ARCH" = xx86; then                                                                           
916       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_$1_CPU_LEGACY_LIB"                    
917     fi                                                                                                                     
918 
919     $2CFLAGS_JDK="[$]$2CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"                                
920     $2CXXFLAGS_JDK="[$]$2CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"                
921   elif test "x$TOOLCHAIN_TYPE" = xxlc; then                                                                                
922     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -D_REENTRANT"                                                                            
923     $2CFLAGS_JDK="[$]$2CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"                                 
924     $2CXXFLAGS_JDK="[$]$2CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"                             
925   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then                                                                          
926     $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS [$]$2COMMON_CCXXFLAGS_JDK \                                              
927         -MD -Zc:wchar_t- -W3 -wd4800 \                                                                                     
928         -DWIN32_LEAN_AND_MEAN \                                                                                            
929         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \                                                           
930         -DWIN32 -DIAL"                                                                                                     
                                                                                                                           
931     if test "x$OPENJDK_$1_CPU" = xx86_64; then                                                                             
932       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"                                                 
933     else                                                                                                                   
934       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"                                                     
935     fi                                                                                                                     
936     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to                                              
937     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual                                              
938     # studio.                                                                                                              
939     if test "x$TOOLCHAIN_VERSION" = "x2010"; then                                                                          
940       STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB"                                            
941       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS"                                              
942       $2JVM_CFLAGS="[$]$2JVM_CFLAGS $STATIC_CPPLIB_FLAGS"                                                                  
943     fi                                                                                                                     
944   fi                                                                                                                       
945 
946   ###############################################################################                                          
947 
948   # Adjust flags according to debug level.                                                                                 
949   case $DEBUG_LEVEL in                                                                                                     

911     fi
912   elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then
913     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DSPARC_WORKS"
914     $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS [$]$2COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS"
915     if test "x$OPENJDK_$1_CPU_ARCH" = xx86; then
916       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_$1_CPU_LEGACY_LIB"
917     fi
918 
919     $2CFLAGS_JDK="[$]$2CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal"
920     $2CXXFLAGS_JDK="[$]$2CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib"
921   elif test "x$TOOLCHAIN_TYPE" = xxlc; then
922     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -D_REENTRANT"
923     $2CFLAGS_JDK="[$]$2CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
924     $2CXXFLAGS_JDK="[$]$2CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC"
925   elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then
926     $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS [$]$2COMMON_CCXXFLAGS_JDK \
927         -MD -Zc:wchar_t- -W3 -wd4800 \
928         -DWIN32_LEAN_AND_MEAN \
929         -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
930         -DWIN32 -DIAL"
931     $2JVM_CFLAGS="[$]$2JVM_CFLAGS -DWIN32_LEAN_AND_MEAN"
932     if test "x$OPENJDK_$1_CPU" = xx86_64; then
933       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64"
934     else
935       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86"
936     fi
937     # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to
938     # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual
939     # studio.
940     if test "x$TOOLCHAIN_VERSION" = "x2010"; then
941       STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB"
942       $2COMMON_CCXXFLAGS_JDK="[$]$2COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS"
943       $2JVM_CFLAGS="[$]$2JVM_CFLAGS $STATIC_CPPLIB_FLAGS"
944     fi
945   fi
946 
947   ###############################################################################
948 
949   # Adjust flags according to debug level.
950   case $DEBUG_LEVEL in
< prev index next >