@@ -7,10 +7,6 @@ RUN apt-get install -y --force-yes --no-install-recommends \
7
7
zlib1g-dev \
8
8
bzip2 xz-utils \
9
9
g++ libc6-dev \
10
- g++-powerpc-linux-gnu libc6-dev-powerpc-cross \
11
- g++-5-powerpc64-linux-gnu libc6-dev-ppc64-powerpc-cross \
12
- g++-powerpc64le-linux-gnu libc6-dev-ppc64el-cross \
13
- g++-s390x-linux-gnu \
14
10
bsdtar \
15
11
cmake \
16
12
g++-5-mips-linux-gnu libc6-dev-mips-cross \
@@ -60,6 +56,10 @@ COPY linux-cross/build_toolchain.sh \
60
56
linux-cross/mipsel-linux-musl.config \
61
57
linux-cross/armv7-linux-gnueabihf.config \
62
58
linux-cross/armv7-linux-musleabihf.config \
59
+ linux-cross/powerpc-linux-gnu.config \
60
+ linux-cross/powerpc64-linux-gnu.config \
61
+ linux-cross/powerpc64le-linux-gnu.config \
62
+ linux-cross/s390x-linux-gnu.config \
63
63
/build/
64
64
USER rustbuild
65
65
@@ -108,11 +108,19 @@ RUN /bin/bash build_toolchain.sh arm-linux-musleabi
108
108
RUN /bin/bash build_toolchain.sh arm-linux-musleabihf
109
109
RUN /bin/bash build_toolchain.sh armv7-linux-musleabihf
110
110
111
+ # Also build toolchains for {powerpc{,64{,le}},s390x}-unknown-linux-gnu,
112
+ # primarily to support older glibc than found in the Ubuntu root.
113
+ RUN /bin/bash build_toolchain.sh powerpc-linux-gnu
114
+ RUN /bin/bash build_toolchain.sh powerpc64-linux-gnu
115
+ RUN /bin/bash build_toolchain.sh powerpc64le-linux-gnu
116
+ RUN /bin/bash build_toolchain.sh s390x-linux-gnu
117
+
111
118
USER root
112
119
113
120
# Rename all the compilers we just built into /usr/bin and also without
114
121
# `-unknown-` in the name because it appears lots of other compilers in Ubuntu
115
122
# don't have this name in the component by default either.
123
+ # Also rename `-ibm-` out of the s390x compilers.
116
124
# Also the aarch64 compiler is prefixed with `aarch64-unknown-linux-gnueabi`
117
125
# by crosstool-ng, but Ubuntu just prefixes it with `aarch64-linux-gnu` so
118
126
# we'll, additionally, strip the eabi part from its binaries.
@@ -121,6 +129,10 @@ RUN \
121
129
g=`basename $f`; \
122
130
ln -vs $f /usr/bin/`echo $g | sed -e 's/-unknown//' `; \
123
131
done && \
132
+ for f in `ls /x-tools/*-ibm-linux-*/bin/*-ibm-linux-*`; do \
133
+ g=`basename $f`; \
134
+ ln -vs $f /usr/bin/`echo $g | sed -e 's/-ibm//' `; \
135
+ done && \
124
136
for f in `ls /usr/bin/aarch64-linux-gnueabi-*`; do \
125
137
g=`basename $f`; \
126
138
mv -v $f /usr/bin/`echo $g | sed -e 's/eabi//' `; \
@@ -184,8 +196,8 @@ ENV AR_armv7_unknown_linux_gnueabihf=armv7-linux-gnueabihf-ar \
184
196
CC_mipsel_unknown_linux_musl=mipsel-linux-musl-gcc \
185
197
CXX_mipsel_unknown_linux_musl=mipsel-linux-musl-g++ \
186
198
AR_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-ar \
187
- CC_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-gcc-5 \
188
- CXX_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-g++-5 \
199
+ CC_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-gcc \
200
+ CXX_powerpc64_unknown_linux_gnu=powerpc64-linux-gnu-g++ \
189
201
AR_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-ar \
190
202
CC_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-gcc \
191
203
CXX_powerpc64le_unknown_linux_gnu=powerpc64le-linux-gnu-g++ \
0 commit comments