< prev index next >

make/autoconf/jdk-options.m4

Print this page




 565     if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
 566       AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS])
 567     fi
 568   elif test "x$enable_generate_classlist" = "xno"; then
 569     AC_MSG_RESULT([no, forced])
 570     ENABLE_GENERATE_CLASSLIST="false"
 571   elif test "x$enable_generate_classlist" = "x"; then
 572     if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
 573       AC_MSG_RESULT([yes])
 574       ENABLE_GENERATE_CLASSLIST="true"
 575     else
 576       AC_MSG_RESULT([no])
 577       ENABLE_GENERATE_CLASSLIST="false"
 578     fi
 579   else
 580     AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist])
 581   fi
 582 
 583   AC_SUBST(ENABLE_GENERATE_CLASSLIST)
 584 ])




































































 565     if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then
 566       AC_MSG_WARN([Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS])
 567     fi
 568   elif test "x$enable_generate_classlist" = "xno"; then
 569     AC_MSG_RESULT([no, forced])
 570     ENABLE_GENERATE_CLASSLIST="false"
 571   elif test "x$enable_generate_classlist" = "x"; then
 572     if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then
 573       AC_MSG_RESULT([yes])
 574       ENABLE_GENERATE_CLASSLIST="true"
 575     else
 576       AC_MSG_RESULT([no])
 577       ENABLE_GENERATE_CLASSLIST="false"
 578     fi
 579   else
 580     AC_MSG_ERROR([Invalid value for --enable-generate-classlist: $enable_generate_classlist])
 581   fi
 582 
 583   AC_SUBST(ENABLE_GENERATE_CLASSLIST)
 584 ])
 585 
 586 AC_DEFUN([JDKOPT_SETUP_HARDENED_FLAGS],
 587 [
 588   AC_ARG_ENABLE([hardened-jdk], [AS_HELP_STRING([--enable-hardened-jdk],
 589       [enable hardening compiler flags for all jdk libraries (except the JVM),
 590       typically disabling speculative cti. @<:@disabled@:>@])])
 591 
 592   HARDENED_JDK="false"
 593   AC_MSG_CHECKING([if hardened flags should be used for jdk libraries])
 594   if test "x$enable_hardened_jdk" = "xyes"; then
 595     AC_MSG_RESULT([yes])
 596     HARDENED_JDK="true"
 597   elif test "x$enable_hardened_jdk" = "xno"; then
 598     AC_MSG_RESULT([no])
 599     HARDENED_JDK="false"
 600   elif test "x$enable_hardened_jdk" = "x"; then
 601     AC_MSG_RESULT([no, default])
 602   else
 603     AC_MSG_RESULT([no])
 604     AC_MSG_ERROR([--enable-hardened-jdk does not take a value])
 605   fi
 606 
 607   if test "x$HARDENED_JDK" = "xtrue"; then
 608     if test -z "$NO_SPECULATIVE_CTI_CFLAGS"; then
 609       AC_MSG_ERROR([Speculative cti mitigations not available, cannot enable hardened jdk])
 610     fi
 611     CFLAGS_JDKEXE="$CFLAGS_JDKEXE $NO_SPECULATIVE_CTI_CFLAGS"
 612     CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $NO_SPECULATIVE_CTI_CFLAGS"
 613     CFLAGS_JDKLIB="$CFLAGS_JDKLIB $NO_SPECULATIVE_CTI_CFLAGS"
 614     CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $NO_SPECULATIVE_CTI_CFLAGS"
 615   fi
 616 
 617   AC_ARG_ENABLE([hardened-hotspot], [AS_HELP_STRING([--enable-hardened-hotspot],
 618       [enable hardening compiler flags for hotspot (all jvm variants),
 619       typically disabling speculative cti. To make hardening of hotspot a runtime
 620       choice, consider the "hardened" jvm variant instead of this option.
 621       @<:@disabled@:>@])])
 622 
 623   HARDENED_HOTSPOT="false"
 624   AC_MSG_CHECKING([if hardened flags should be used for hotspot])
 625   if test "x$enable_hardened_hotspot" = "xyes"; then
 626     AC_MSG_RESULT([yes])
 627     HARDENED_HOTSPOT="true"
 628   elif test "x$enable_hardened_hotspot" = "xno"; then
 629     AC_MSG_RESULT([no])
 630     HARDENED_HOTSPOT="false"
 631   elif test "x$enable_hardened_hotspot" = "x"; then
 632     AC_MSG_RESULT([no, default])
 633   else
 634     AC_MSG_RESULT([no])
 635     AC_MSG_ERROR([--enable-hardened-hotspot does not take a value])
 636   fi
 637 
 638   if test "x$HARDENED_HOTSPOT" = "xtrue" && HOTSPOT_CHECK_JVM_VARIANT([hardened]); then
 639     AC_MSG_ERROR([Cannot enable both hardened hotspot as well as hardened jvm variant])
 640   fi
 641 
 642   if test "x$HARDENED_HOTSPOT" = "xtrue" || HOTSPOT_CHECK_JVM_VARIANT([hardened]); then
 643     if test -z "$NO_SPECULATIVE_CTI_CFLAGS"; then
 644       AC_MSG_ERROR([Speculative cti mitigations not available, cannot enable hardened hotspot])
 645     fi
 646   fi
 647 
 648   AC_SUBST(HARDENED_JDK)
 649   AC_SUBST(HARDENED_HOTSPOT)
 650 ])
< prev index next >