@@ -10,7 +10,7 @@ main() {
10
10
local arch=" ${1} "
11
11
12
12
local binutils=2.28.1 \
13
- gcc=6 .4.0 \
13
+ gcc=8 .4.0 \
14
14
target=" ${arch} -sun-solaris2.10"
15
15
16
16
install_packages bzip2 \
@@ -58,18 +58,21 @@ main() {
58
58
add-apt-repository -y ' deb http://apt.dilos.org/dilos dilos2-testing main'
59
59
dpkg --add-architecture " ${apt_arch} "
60
60
apt-get update
61
- apt-cache depends --recurse --no-replaces \
62
- " libc:${apt_arch} " \
63
- " libdl-dev:${apt_arch} " \
64
- " libm-dev:${apt_arch} " \
65
- " libnsl-dev:${apt_arch} " \
66
- " libpthread-dev:${apt_arch} " \
67
- " libresolv-dev:${apt_arch} " \
68
- " librt:${apt_arch} " \
69
- " libsocket-dev:${apt_arch} " \
70
- " system-crt:${apt_arch} " \
71
- " system-header:${apt_arch} " \
72
- | grep " ^\w" | xargs apt-get download
61
+ # shellcheck disable=SC2046
62
+ apt-get download $( apt-cache depends --recurse --no-replaces \
63
+ " libc:${apt_arch} " \
64
+ " liblgrp-dev:${apt_arch} " \
65
+ " liblgrp:${apt_arch} " \
66
+ " libm-dev:${apt_arch} " \
67
+ " libpthread:${apt_arch} " \
68
+ " libresolv:${apt_arch} " \
69
+ " librt:${apt_arch} " \
70
+ " libsendfile-dev:${apt_arch} " \
71
+ " libsendfile:${apt_arch} " \
72
+ " libsocket:${apt_arch} " \
73
+ " system-crt:${apt_arch} " \
74
+ " system-header:${apt_arch} " \
75
+ | grep " ^\w" )
73
76
74
77
for deb in * " ${apt_arch} .deb" ; do
75
78
dpkg -x " ${deb} " " ${td} /solaris"
102
105
ln -s usr/include " ${destdir} /sys-include"
103
106
ln -s usr/include " ${destdir} /include"
104
107
108
+ # note: solaris2.10 is obsolete, so we can't upgrade to GCC 10 till then.
109
+ # for gcc 9.4.0, need `--enable-obsolete`
105
110
cd gcc-build
106
111
../gcc/configure \
107
112
--disable-libada \
0 commit comments