make/autoconf/flags-cflags.m4
changeset 58846 f9ac726ab347
parent 58747 c6fd655677ec
child 58909 66f7d2494d4e
equal deleted inserted replaced
58845:e492513d3630 58846:f9ac726ab347
   692     OS_CFLAGS_JVM="$OS_CFLAGS_JVM -DSUPPORTS_CLOCK_MONOTONIC"
   692     OS_CFLAGS_JVM="$OS_CFLAGS_JVM -DSUPPORTS_CLOCK_MONOTONIC"
   693     if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then
   693     if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then
   694       OS_CFLAGS_JVM="$OS_CFLAGS_JVM -DNEEDS_LIBRT"
   694       OS_CFLAGS_JVM="$OS_CFLAGS_JVM -DNEEDS_LIBRT"
   695     fi
   695     fi
   696   fi
   696   fi
       
   697 
       
   698   # Extra flags needed when building optional static versions of certain
       
   699   # JDK libraries.
       
   700   STATIC_LIBS_CFLAGS="-DSTATIC_BUILD=1"
       
   701   if test "x$TOOLCHAIN_TYPE" = xgcc || test "x$TOOLCHAIN_TYPE" = xclang; then
       
   702     STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS -ffunction-sections -fdata-sections"
       
   703   fi
       
   704   if test "x$TOOLCHAIN_TYPE" = xgcc; then
       
   705     # Disable relax-relocation to enable compatibility with older linkers
       
   706     RELAX_RELOCATIONS_FLAG="-Xassembler -mrelax-relocations=no"
       
   707     FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [${RELAX_RELOCATIONS_FLAG}],
       
   708         IF_TRUE: [STATIC_LIBS_CFLAGS="$STATIC_LIBS_CFLAGS ${RELAX_RELOCATIONS_FLAG}"])
       
   709   fi
       
   710   AC_SUBST(STATIC_LIBS_CFLAGS)
   697 ])
   711 ])
   698 
   712 
   699 ################################################################################
   713 ################################################################################
   700 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
   714 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check
   701 #      conditionals against.
   715 #      conditionals against.