equal
deleted
inserted
replaced
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. |