-
Notifications
You must be signed in to change notification settings - Fork 3
/
jdk-15.sh
33 lines (25 loc) · 962 Bytes
/
jdk-15.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
set -xe
VERSION=15
. common.sh
PATH="/usr/bin:/usr/gnu/bin"
CONFIGURE_OPTIONS+=" --enable-unlimited-crypto"
CONFIGURE_OPTIONS+=" --enable-deprecated-ports=yes"
CONFIGURE_OPTIONS+=" --with-boot-jdk=$BOOT_JDK"
CONFIGURE_OPTIONS+=" --with-native-debug-symbols=none"
CONFIGURE_OPTIONS+=" --with-toolchain-type=gcc"
CONFIGURE_OPTIONS+=" --disable-hotspot-gtest"
CONFIGURE_OPTIONS+=" --disable-dtrace"
CONFIGURE_OPTIONS+=" --disable-warnings-as-errors"
CONFIGURE_OPTIONS+=" AS=/usr/gnu/bin/as"
CONFIGURE_OPTIONS+=" CC=$GCC"
CONFIGURE_OPTIONS+=" CXX=$GXX"
git clone ${JDK_GITHUB_REPO}/$SRC_DIR "$BUILD_DIR"/$SRC_DIR
cd "$BUILD_DIR"/$SRC_DIR
# There are some troubles with latest OpenJDK 15 update commits. For now
# let's build sources at the same commit as it's in original Mercurial
# repo.
git checkout jdk-15.0.9-ga
#git checkout 5c924b4d7b14d0984b875c191a7367d9dbd7853f
apply_patch_series
PATH="$PATH" bash ./configure ${CONFIGURE_OPTIONS}
gmake bundles