mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-22 05:24:48 +00:00
Make Solaris builder compatible with Solaris 10
This commit is contained in:
parent
2d7397230a
commit
8f4ff6307f
@ -36,12 +36,12 @@ ENV \
|
|||||||
AR_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-ar \
|
AR_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-ar \
|
||||||
CC_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang \
|
CC_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang \
|
||||||
CXX_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang++ \
|
CXX_aarch64_unknown_fuchsia=aarch64-unknown-fuchsia-clang++ \
|
||||||
AR_sparcv9_sun_solaris=sparcv9-sun-solaris2.11-ar \
|
AR_sparcv9_sun_solaris=sparcv9-sun-solaris2.10-ar \
|
||||||
CC_sparcv9_sun_solaris=sparcv9-sun-solaris2.11-gcc \
|
CC_sparcv9_sun_solaris=sparcv9-sun-solaris2.10-gcc \
|
||||||
CXX_sparcv9_sun_solaris=sparcv9-sun-solaris2.11-g++ \
|
CXX_sparcv9_sun_solaris=sparcv9-sun-solaris2.10-g++ \
|
||||||
AR_x86_64_sun_solaris=x86_64-sun-solaris2.11-ar \
|
AR_x86_64_sun_solaris=x86_64-sun-solaris2.10-ar \
|
||||||
CC_x86_64_sun_solaris=x86_64-sun-solaris2.11-gcc \
|
CC_x86_64_sun_solaris=x86_64-sun-solaris2.10-gcc \
|
||||||
CXX_x86_64_sun_solaris=x86_64-sun-solaris2.11-g++
|
CXX_x86_64_sun_solaris=x86_64-sun-solaris2.10-g++
|
||||||
|
|
||||||
ENV TARGETS=x86_64-unknown-fuchsia
|
ENV TARGETS=x86_64-unknown-fuchsia
|
||||||
ENV TARGETS=$TARGETS,aarch64-unknown-fuchsia
|
ENV TARGETS=$TARGETS,aarch64-unknown-fuchsia
|
||||||
|
@ -25,7 +25,7 @@ cd binutils
|
|||||||
curl https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS.tar.xz | tar xJf -
|
curl https://ftp.gnu.org/gnu/binutils/binutils-$BINUTILS.tar.xz | tar xJf -
|
||||||
mkdir binutils-build
|
mkdir binutils-build
|
||||||
cd binutils-build
|
cd binutils-build
|
||||||
hide_output ../binutils-$BINUTILS/configure --target=$ARCH-sun-solaris2.11
|
hide_output ../binutils-$BINUTILS/configure --target=$ARCH-sun-solaris2.10
|
||||||
hide_output make -j10
|
hide_output make -j10
|
||||||
hide_output make install
|
hide_output make install
|
||||||
|
|
||||||
@ -58,13 +58,17 @@ for deb in *$APT_ARCH.deb; do
|
|||||||
dpkg -x $deb .
|
dpkg -x $deb .
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir /usr/local/$ARCH-sun-solaris2.11/usr
|
# Strip Solaris 11 functions that are optionally used by libbacktrace.
|
||||||
mv usr/include /usr/local/$ARCH-sun-solaris2.11/usr/include
|
# This is for Solaris 10 compatibility.
|
||||||
mv usr/lib/$LIB_ARCH/* /usr/local/$ARCH-sun-solaris2.11/lib
|
$ARCH-sun-solaris2.10-strip -N dl_iterate_phdr -N strnlen lib/$LIB_ARCH/libc.so
|
||||||
mv lib/$LIB_ARCH/* /usr/local/$ARCH-sun-solaris2.11/lib
|
|
||||||
|
|
||||||
ln -s /usr/local/$ARCH-sun-solaris2.11/usr/include /usr/local/$ARCH-sun-solaris2.11/sys-include
|
mkdir /usr/local/$ARCH-sun-solaris2.10/usr
|
||||||
ln -s /usr/local/$ARCH-sun-solaris2.11/usr/include /usr/local/$ARCH-sun-solaris2.11/include
|
mv usr/include /usr/local/$ARCH-sun-solaris2.10/usr/include
|
||||||
|
mv usr/lib/$LIB_ARCH/* /usr/local/$ARCH-sun-solaris2.10/lib
|
||||||
|
mv lib/$LIB_ARCH/* /usr/local/$ARCH-sun-solaris2.10/lib
|
||||||
|
|
||||||
|
ln -s /usr/local/$ARCH-sun-solaris2.10/usr/include /usr/local/$ARCH-sun-solaris2.10/sys-include
|
||||||
|
ln -s /usr/local/$ARCH-sun-solaris2.10/usr/include /usr/local/$ARCH-sun-solaris2.10/include
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf solaris
|
rm -rf solaris
|
||||||
@ -80,7 +84,7 @@ mkdir ../gcc-build
|
|||||||
cd ../gcc-build
|
cd ../gcc-build
|
||||||
hide_output ../gcc-$GCC/configure \
|
hide_output ../gcc-$GCC/configure \
|
||||||
--enable-languages=c,c++ \
|
--enable-languages=c,c++ \
|
||||||
--target=$ARCH-sun-solaris2.11 \
|
--target=$ARCH-sun-solaris2.10 \
|
||||||
--with-gnu-as \
|
--with-gnu-as \
|
||||||
--with-gnu-ld \
|
--with-gnu-ld \
|
||||||
--disable-multilib \
|
--disable-multilib \
|
||||||
@ -94,7 +98,7 @@ hide_output ../gcc-$GCC/configure \
|
|||||||
--disable-libsanitizer \
|
--disable-libsanitizer \
|
||||||
--disable-libquadmath-support \
|
--disable-libquadmath-support \
|
||||||
--disable-lto \
|
--disable-lto \
|
||||||
--with-sysroot=/usr/local/$ARCH-sun-solaris2.11
|
--with-sysroot=/usr/local/$ARCH-sun-solaris2.10
|
||||||
|
|
||||||
hide_output make -j10
|
hide_output make -j10
|
||||||
hide_output make install
|
hide_output make install
|
||||||
|
Loading…
Reference in New Issue
Block a user