Skip to content

Commit d707c51

Browse files
committed
Allow to use newer GCC versions, update README file
1 parent 4ab9f11 commit d707c51

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,33 @@ Alternately you can use your own bootstrap version.
8383

8484
--
8585

86+
Or alternatively you can build OpenJDK LTS version 21 (i386 only) or 17 using
87+
bootstrap archives with `bootstrap-lts-jdk.sh`:
88+
89+
```
90+
git clone https://github.com/psumbera/solaris-openjdk.git
91+
cd solaris-openjdk/
92+
./bootstrap-lts-jdk.sh 21
93+
Downloading OpenJDK 20 boostrap version...
94+
############################################################################################################################################################################################################ 100.0%
95+
Extraxcting it...
96+
Clonning OpenJDK source repo...
97+
Cloning into './jdk21u-5SImGb/jdk21u'...
98+
remote: Enumerating objects: 1386884, done.
99+
remote: Counting objects: 100% (13559/13559), done.
100+
remote: Compressing objects: 100% (4210/4210), done.
101+
remote: Total 1386884 (delta 10025), reused 9381 (delta 9343), pack-reused 1373325 (from 4)
102+
Receiving objects: 100% (1386884/1386884), 1.10 GiB | 9.33 MiB/s, done.
103+
Resolving deltas: 100% (1029432/1029432), done.
104+
Updating files: 100% (68594/68594), done.
105+
Building OpenJDK 21 (/home/test/solaris-openjdk/build.log)...
106+
0:05:09 [=======================================================================================================================================================================================>] 100%
107+
Creating archive /home/test/solaris-openjdk/archives/openjdk-21.0.8_SunOS-i386_bin.tar.xz
108+
109+
```
110+
111+
--
112+
86113
[1] JDK 8 is needed only for OpenJDK 9. Solaris Studio is needed only for
87114
OpenJDK 9, 10, 11 and 12. See example with `--build-from=[NUM]`.
88115

bootstrap-lts-jdk.sh

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ required_bins=(
4141
/usr/bin/find
4242
/usr/bin/gawk
4343
/usr/bin/gcc
44+
/usr/bin/g++
4445
/usr/bin/ggrep
4546
/usr/bin/git
4647
/usr/bin/gmake
@@ -98,7 +99,7 @@ git clone https://github.com/openjdk/jdk${VERSION}u $tmpdir/jdk${VERSION}u
9899

99100
# Building
100101

101-
echo "Building OpenJDK ${VERSION}.."
102+
echo "Building OpenJDK ${VERSION} ($(pwd)/build.log)..."
102103
JDK_GITHUB_REPO=$(pwd)/$tmpdir BOOT_JDK=$(pwd)/jdk-${BOOTSTRAP_VERSION}-bootstrap bash jdk-${VERSION}.sh 2>&1 | tee build.log | pv -l -s $total_lines -p -t -e > /dev/null
103104

104105
# Create archive

common.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,24 @@ STUDIO="/opt/solarisstudio12.4/bin"
2525
if [ -d /usr/gcc/10 ] ; then
2626
GCC=/usr/gcc/10/bin/gcc
2727
GXX=/usr/gcc/10/bin/g++
28-
else
28+
elif [ -d /usr/gcc/11 ] ; then
2929
GCC=/usr/gcc/11/bin/gcc
3030
GXX=/usr/gcc/11/bin/g++
31+
elif [ -d /usr/gcc/12 ] ; then
32+
GCC=/usr/gcc/12/bin/gcc
33+
GXX=/usr/gcc/12/bin/g++
34+
elif [ -d /usr/gcc/13 ] ; then
35+
GCC=/usr/gcc/13/bin/gcc
36+
GXX=/usr/gcc/13/bin/g++
37+
elif [ -d /usr/gcc/14 ] ; then
38+
GCC=/usr/gcc/14/bin/gcc
39+
GXX=/usr/gcc/14/bin/g++
40+
elif [ -d /usr/gcc/15 ] ; then
41+
GCC=/usr/gcc/15/bin/gcc
42+
GXX=/usr/gcc/15/bin/g++
43+
else
44+
GCC=/usr/bin/gcc
45+
GXX=/usr/bin/g++
3146
fi
3247

3348
mkdir -p "$BUILD_DIR"

0 commit comments

Comments
 (0)