diff --git a/build b/build index 1b630d1..cba097b 100755 --- a/build +++ b/build @@ -2,18 +2,18 @@ set -e -wget https://ftp.gnu.org/gnu/binutils/binutils-2.29.1.tar.gz -O - | tar xz -cd binutils-2.29.1 -./configure --prefix=/opt/devtools-7.2/ +wget https://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.gz -O - | tar xz +cd binutils-2.31.1 +./configure --prefix=/opt/devtools-8.2/ make -j4 make install cd .. -wget https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.gz -O - | tar xz +wget https://ftp.gnu.org/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.gz -O - | tar xz mkdir -p gcc cd gcc ORGLDFLAGS=$LDFLAGS unset LDFLAGS -../gcc-7.2.0/configure --prefix=/opt/devtools-7.2 --with-gmp=/opt/devtools-7.2 --with-mpfr=/opt/devtools-7.2 --with-mpc=/opt/devtools-7.2 --enable-languages=c,c++ --disable-multilib --with-stage1-ldflags="-L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64 -L/opt/devtools-6.3/lib64 -Wl,-rpath,/opt/devtools-6.3/lib64" --with-boot-ldflags="-L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64" -LD_LIBRARY_PATH="/opt/devtools-6.3/lib64" make -j4 +../gcc-8.2.0/configure --prefix=/opt/devtools-8.2 --with-gmp=/opt/devtools-8.2 --with-mpfr=/opt/devtools-8.2 --with-mpc=/opt/devtools-8.2 --enable-languages=c,c++ --disable-multilib --with-stage1-ldflags="-L/opt/devtools-8.2/lib64 -Wl,-rpath,/opt/devtools-8.2/lib64 -L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64" --with-boot-ldflags="-L/opt/devtools-8.2/lib64 -Wl,-rpath,/opt/devtools-8.2/lib64" +LD_LIBRARY_PATH="/opt/devtools-7.2/lib64" make -j4 make install diff --git a/build_deps b/build_deps index 878f6aa..b47dae7 100755 --- a/build_deps +++ b/build_deps @@ -4,28 +4,28 @@ set -e wget --no-check-certificate http://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.gz -O - | tar xz cd patchelf-0.9 -CXXFLAGS="$CXXFLAGS -static-libstdc++" LDFLAGS="$LDFLAGS -static-libstdc++" ./configure --prefix=/opt/devtools-7.2 +CXXFLAGS="$CXXFLAGS -static-libstdc++" LDFLAGS="$LDFLAGS -static-libstdc++" ./configure --prefix=/opt/devtools-8.2 make -j4 make install cd - wget http://mirror.internode.on.net/pub/gnu/gmp/gmp-6.1.2.tar.bz2 -O - | tar xj cd gmp-6.1.2 -./configure --prefix=/opt/devtools-7.2 --libdir=/opt/devtools-7.2/lib64 +./configure --prefix=/opt/devtools-8.2 --libdir=/opt/devtools-8.2/lib64 make -j4 make install cd .. -wget http://www.mpfr.org/mpfr-current/mpfr-3.1.6.tar.bz2 -O - | tar xj -cd mpfr-3.1.6 -./configure --prefix=/opt/devtools-7.2 --libdir=/opt/devtools-7.2/lib64 +wget http://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2 -O - | tar xj +cd mpfr-4.0.1 +./configure --prefix=/opt/devtools-8.2 --libdir=/opt/devtools-8.2/lib64 make -j4 make install cd .. -wget http://www.multiprecision.org/mpc/download/mpc-1.0.3.tar.gz -O - | tar xz -cd mpc-1.0.3 -./configure --prefix=/opt/devtools-7.2 --libdir=/opt/devtools-7.2/lib64 +wget http://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz -O - | tar xz +cd mpc-1.1.0 +./configure --prefix=/opt/devtools-8.2 --libdir=/opt/devtools-8.2/lib64 make -j4 make install cd .. diff --git a/env.list b/env.list index b0c594b..d11f623 100644 --- a/env.list +++ b/env.list @@ -1,4 +1,4 @@ -PATH=/opt/devtools-7.2/bin:/opt/devtools-6.3/bin:/opt/prefix/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -CFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-6.3/include -CPPFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-6.3/include -LDFLAGS=-L/opt/devtools-7.2/lib64 -L/opt/devtools-6.3/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-6.3/lib64 +PATH=/opt/devtools-8.2/bin:/opt/devtools-7.2/bin:/opt/prefix/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin +CFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-7.2/include +CPPFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-7.2/include +LDFLAGS=-L/opt/devtools-8.2/lib64 -L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-8.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64 diff --git a/image/Dockerfile b/image/Dockerfile index 8883b7b..9ca54ea 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -1,4 +1,4 @@ FROM centos:centos6 RUN yum install -y make wget m4 diffutils bzip2 glibc-devel -RUN wget https://github.com/squeaky-pl/centos-devtools/releases/download/6.3/gcc-6.3.0-binutils-2.27-x86_64.tar.bz2 -O - | tar -C / -xj +RUN wget https://github.com/squeaky-pl/centos-devtools/releases/download/7.2/gcc-7.2.0-binutils-2.29.1-x86_64.tar.bz2 -O - | tar -C / -xj diff --git a/package b/package index 4815c04..a6859c5 100755 --- a/package +++ b/package @@ -1,18 +1,18 @@ #!/bin/bash -GCC=$(/opt/devtools-7.2/bin/gcc --version | head -n 1 | awk '{ print $3 }') -BINUTILS=$(/opt/devtools-7.2/bin/ld --version | head -n 1 | awk '{ print $5 }') +GCC=$(/opt/devtools-8.2/bin/gcc --version | head -n 1 | awk '{ print $3 }') +BINUTILS=$(/opt/devtools-8.2/bin/ld --version | head -n 1 | awk '{ print $5 }') -cp -r /opt/devtools-7.2 /opt/devtools-orig +cp -r /opt/devtools-8.2 /opt/devtools-orig -cd /opt/devtools-7.2/bin +cd /opt/devtools-8.2/bin ln -s gcc cc cd - -cd /opt/devtools-7.2 +cd /opt/devtools-8.2 for i in `find -type f`; do [ -x $i ] && echo "$i"; done | xargs strip cd - -tar cf - /opt/devtools-7.2 | bzip2 --best - > gcc-$GCC-binutils-$BINUTILS-$(uname -m).tar.bz2 +tar cf - /opt/devtools-8.2 | bzip2 --best - > gcc-$GCC-binutils-$BINUTILS-$(uname -m).tar.bz2 diff --git a/runopt.sh b/runopt.sh index 2445ac3..7df333e 100755 --- a/runopt.sh +++ b/runopt.sh @@ -8,7 +8,7 @@ cat <