|
@ -11,17 +11,17 @@ makeopts_jobs() { |
|
|
echo ${jobs:-1} |
|
|
echo ${jobs:-1} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
version_jdk21=21.0.5+3 |
|
|
version_jdk21=21.0.6+6 |
|
|
version_jdk20=20.0.2+9 |
|
|
version_jdk20=20.0.2+9 |
|
|
version_jdk19=19.0.2+7 |
|
|
version_jdk19=19.0.2+7 |
|
|
version_jdk18=18.0.2.1+1 |
|
|
version_jdk18=18.0.2.1+1 |
|
|
version_jdk17=17.0.13+3 |
|
|
version_jdk17=17.0.14+6 |
|
|
version_jdk16=16.0.2+7 |
|
|
version_jdk16=16.0.2+7 |
|
|
version_jdk15=15.0.10+5 |
|
|
version_jdk15=15.0.10+5 |
|
|
version_jdk14=14.0.2+12 |
|
|
version_jdk14=14.0.2+12 |
|
|
version_jdk13=13.0.14+5 |
|
|
version_jdk13=13.0.14+5 |
|
|
version_jdk12=12.0.2+10 |
|
|
version_jdk12=12.0.2+10 |
|
|
version_jdk11=11.0.25+3 |
|
|
version_jdk11=11.0.26+3 |
|
|
version_jdk10=10.0.2+13 |
|
|
version_jdk10=10.0.2+13 |
|
|
version_jdk9=9+181 |
|
|
version_jdk9=9+181 |
|
|
|
|
|
|
|
@ -43,8 +43,8 @@ cd "$srcdir" |
|
|
chmod +x configure |
|
|
chmod +x configure |
|
|
|
|
|
|
|
|
# Some jdk versions require fixing up things |
|
|
# Some jdk versions require fixing up things |
|
|
CFLAGS="" |
|
|
CFLAGS= |
|
|
CXXFLAGS="" |
|
|
CXXFLAGS= |
|
|
case "$version_jdk_major" in |
|
|
case "$version_jdk_major" in |
|
|
jdk9) |
|
|
jdk9) |
|
|
patch -p1 -i "$dir_files/jdk-9+181-disarm-timebomb.patch" |
|
|
patch -p1 -i "$dir_files/jdk-9+181-disarm-timebomb.patch" |
|
@ -52,8 +52,7 @@ jdk9) |
|
|
sed -i -e '/^ *COMPILER_VERSION_NUMBER=/{N;s/\[1-9\]/&[0-9]*/}' \ |
|
|
sed -i -e '/^ *COMPILER_VERSION_NUMBER=/{N;s/\[1-9\]/&[0-9]*/}' \ |
|
|
common/autoconf/generated-configure.sh |
|
|
common/autoconf/generated-configure.sh |
|
|
export MAKE="$PWD/../install-make42/make" |
|
|
export MAKE="$PWD/../install-make42/make" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CFLAGS="$CFLAGS -fcommon -Wno-error=int-conversion" |
|
|
CXXFLAGS="$CFLAGS -fcommon" |
|
|
|
|
|
;; |
|
|
;; |
|
|
jdk10) |
|
|
jdk10) |
|
|
patch -p1 -i "$dir_files/jdk-10.0.2+13-disarm-timebomb.patch" |
|
|
patch -p1 -i "$dir_files/jdk-10.0.2+13-disarm-timebomb.patch" |
|
@ -62,27 +61,23 @@ jdk10) |
|
|
make/autoconf/generated-configure.sh |
|
|
make/autoconf/generated-configure.sh |
|
|
export MAKE="$PWD/../install-make42/make" |
|
|
export MAKE="$PWD/../install-make42/make" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CXXFLAGS="$CFLAGS -fcommon" |
|
|
|
|
|
;; |
|
|
;; |
|
|
jdk12) |
|
|
jdk12) |
|
|
sed -i -e '/^ *COMPILER_VERSION_NUMBER=/{N;s/@<:@1-9@:>@/&@<:@0-9@:>@*/}' \ |
|
|
sed -i -e '/^ *COMPILER_VERSION_NUMBER=/{N;s/@<:@1-9@:>@/&@<:@0-9@:>@*/}' \ |
|
|
make/autoconf/toolchain.m4 |
|
|
make/autoconf/toolchain.m4 |
|
|
export MAKE="$PWD/../install-make42/make" |
|
|
export MAKE="$PWD/../install-make42/make" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CXXFLAGS="$CFLAGS -fcommon" |
|
|
|
|
|
;; |
|
|
;; |
|
|
jdk13) |
|
|
jdk13) |
|
|
sed -i -e '/^ *COMPILER_VERSION_NUMBER=/{N;s/@<:@1-9@:>@/&@<:@0-9@:>@*/}' \ |
|
|
sed -i -e '/^ *COMPILER_VERSION_NUMBER=/{N;s/@<:@1-9@:>@/&@<:@0-9@:>@*/}' \ |
|
|
make/autoconf/toolchain.m4 |
|
|
make/autoconf/toolchain.m4 |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CXXFLAGS="$CFLAGS -fcommon" |
|
|
|
|
|
;; |
|
|
;; |
|
|
jdk14) |
|
|
jdk14) |
|
|
## Don't detect WSL |
|
|
## Don't detect WSL |
|
|
#sed -i -e 's/grep -i microsoft/false/' \ |
|
|
#sed -i -e 's/grep -i microsoft/false/' \ |
|
|
#make/autoconf/build-aux/config.guess |
|
|
#make/autoconf/build-aux/config.guess |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CFLAGS="$CFLAGS -fcommon" |
|
|
CXXFLAGS="$CFLAGS -fcommon" |
|
|
|
|
|
;; |
|
|
;; |
|
|
jdk16) |
|
|
jdk16) |
|
|
sed -i -e 's/\<prefix\>/fixpath_prefix/g' \ |
|
|
sed -i -e 's/\<prefix\>/fixpath_prefix/g' \ |
|
@ -99,7 +94,7 @@ CONFIG_SHELL=/bin/bash ./configure \ |
|
|
--with-boot-jdk="$PWD/../install-$version_jdk_bootstrap" \ |
|
|
--with-boot-jdk="$PWD/../install-$version_jdk_bootstrap" \ |
|
|
--with-jobs="$(makeopts_jobs)" \ |
|
|
--with-jobs="$(makeopts_jobs)" \ |
|
|
--with-extra-cflags="$CFLAGS -w" \ |
|
|
--with-extra-cflags="$CFLAGS -w" \ |
|
|
--with-extra-cxxflags="$CXXFLAGS -w" \ |
|
|
--with-extra-cxxflags="$CFLAGS -w" \ |
|
|
--enable-headless-only \ |
|
|
--enable-headless-only \ |
|
|
--disable-full-docs \ |
|
|
--disable-full-docs \ |
|
|
--disable-warnings-as-errors |
|
|
--disable-warnings-as-errors |
|
|