diff --git a/srcpkgs/openjdk11/template b/srcpkgs/openjdk11/template index 9fc7c518903..d6878d5846e 100644 --- a/srcpkgs/openjdk11/template +++ b/srcpkgs/openjdk11/template @@ -41,6 +41,7 @@ distfiles="https://github.com/openjdk/jdk${_java_ver}u/archive/jdk-${version}.ta checksum=fb7e68bbaf9174605504e04331b3eadfeb37c23437598a04776fd3a9c085ace2 alternatives="jdk:/usr/lib/jvm/default-jdk:/${_jdk_home}" provides="java-environment-${version}_1" +nocross=temporary # Build is still parallel, but don't use -jN. disable_parallel_build=yes @@ -91,6 +92,7 @@ post_patch() { } do_configure() { + unset _JAVA_OPTIONS JAVA_OPTIONS JAVA_TOOL_OPTIONS CFLAGS=${CFLAGS/-D_FORTIFY_SOURCE=2/} CXXFLAGS=${CXXFLAGS/-D_FORTIFY_SOURCE=2/}