From d7d75205d57206278977197d34577dcd3e8d6434 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Wed, 7 Jul 2021 16:27:54 +0200 Subject: [PATCH] should be fixed... --- binutils/build | 6 +++--- busybox/build | 6 +++--- bzip2/build | 6 +++--- gcc/build | 16 ++++++++++++---- git/build | 6 +++--- glibc/build | 6 +++--- gzip/build | 6 +++--- hummingbird/build | 4 ++-- make/build | 6 +++--- openssl/build | 6 +++--- xz/build | 6 +++--- zlib/build | 6 +++--- 12 files changed, 44 insertions(+), 36 deletions(-) diff --git a/binutils/build b/binutils/build index c8ce403..3ff2ad7 100755 --- a/binutils/build +++ b/binutils/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/binutils/binutils.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz -tar -xf ${temp_location}/binutils/binutils.tar.xz -cd ${temp_location}/biinutils/binutils +wget -O binutils-2.36.1.tar.xz https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz +tar -xf binutils-2.36.1.tar.xz +cd binutils-2.36.1 chmod +x makeinfo export PATH=$PATH:$PWD ./configure \ diff --git a/busybox/build b/busybox/build index 8ca066f..c5091b6 100755 --- a/busybox/build +++ b/busybox/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/busybox/busybox.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2 -tar -xf ${temp_location}/busybox/busybox.tar.bz2 -cd ${temp_location}/busybox +wget -O busybox-1.33.1.tar.bz2 https://busybox.net/downloads/busybox-1.33.1.tar.bz2 +tar -xf busybox-1.33.1.tar.bz2 +cd busybox make defconfig LDFLAGS="--static" make make install DESTDIR="$1" diff --git a/bzip2/build b/bzip2/build index 3ba3143..a60e933 100755 --- a/bzip2/build +++ b/bzip2/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/bzip2/bzip2.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz -tar -xf ${temp_location}/bzip2/bzip2.tar.gz -cd ${temp_location}/bzip2/bzip2 +wget -O bzip2-1.0.8.tar.gz https://sourceware.org/pub/bzip2/bzip2-1.0.8.tar.gz +tar -xf bzip2-1.0.8.tar.gz +cd bzip2-1.0.8 make CC="${CC:-cc} $CFLAGS -fPIC $LDFLAGS" -f Makefile-libbz2_so make CC="${CC:-cc} $CFLAGS -static -fPIC $LDFLAGS" bzip2 mkdir -p "$1/usr/bin" "$1/usr/lib" "$1/usr/share/man/man1" "$1/usr/include" diff --git a/gcc/build b/gcc/build index 3ec83da..c505b68 100755 --- a/gcc/build +++ b/gcc/build @@ -1,6 +1,12 @@ -wget -O ${temp_location}/gcc/gcc.tar.gz -tar -xf ${temp_location}/gcc/gcc.tar.gz -cd ${temp_location}/gcc/gcc +wget -O gcc-11.1.0.tar.gz https://gcc.gnu.org/pub/gcc/releases/gcc-11.1.0/gcc-11.1.0.tar.xz +tar -xf gcc-11.1.0.tar.gz +cd gcc-11.1.0 +wget https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz +wget https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz +wget https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz +tar -xf gmp-6.2.1.tar.xz +tar -xf mpfr-4.1.0.tar.xz +tar -xf mpc-1.2.1.tar.gz sed -i '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 sed -i 's/lib64/lib/' gcc/gcc/config/i386/linux64.h mkdir build @@ -9,5 +15,7 @@ cd build make make install DESTDIR="$1" ln -s gcc "$1/usr/bin/cc" -install -Dm755 ../c99 "$1/usr/bin/c99" +echo "#!/bin/sh" > "$1"/usr/bin/c99 +echo "exec cc -std=c99 "$@"" >> "$1"/usr/bin/c99 +chmod +x "$1"/usr/bin/c99 diff --git a/git/build b/git/build index c2345fb..048cbaa 100755 --- a/git/build +++ b/git/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/git/git.tar.xz https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz -tar -xf ${temp_location}/git/git.tar.xz -cd ${temp_location}/git/git +wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.xz +tar -xf git-2.9.5.tar.xz +cd git-2.9.5 ./configure --prefix=/usr make make install DESTDIR="$1" diff --git a/glibc/build b/glibc/build index e6f1873..84f735f 100755 --- a/glibc/build +++ b/glibc/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/glibc/glibc.tar.gz https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz -tar -xf ${temp_location}/glibc/glibc.tar.gz -cd ${temp_location}/glibc/glibc +wget https://ftp.gnu.org/gnu/libc/glibc-2.33.tar.gz +tar -xf glibc-2.33.tar.gz +cd glibc-2.33 mkdir build cd build ../configure --prefix=/usr diff --git a/gzip/build b/gzip/build index 4fd7848..8ab96e9 100755 --- a/gzip/build +++ b/gzip/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/gzip/gzip.tar.gz https://zlib.net/pigz/pigz-2.6.tar.gz -tar -xf ${temp_location}/gzip/gzip.tar.gz -cd ${temp_location}/gzip/gzip +wget https://zlib.net/pigz/pigz-2.6.tar.gz +tar -xf pigz-2.6.tar.gz +cd pigz-2.6 make CC="${CC:-cc} -static" mkdir -p "$1/usr/bin" "$1/usr/share/man/man1" cp -f pigz unpigz "$1/usr/bin" diff --git a/hummingbird/build b/hummingbird/build index 7b22926..923c049 100755 --- a/hummingbird/build +++ b/hummingbird/build @@ -1,4 +1,4 @@ -git clone https://github.com/Sweets/hummingbird ${temp_location}/hummingbird-build -cd ${temp_location}/hummingbird-build +git clone https://github.com/Sweets/hummingbird hummingbird-build +cd hummingbird-build make make install DESTDIR=$1 diff --git a/make/build b/make/build index 3043c5e..a92247b 100755 --- a/make/build +++ b/make/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/make/make.tar.gz https://ftp.gnu.org/gnu/make/make-4.3.tar.gz -untar -xf ${temp_location}/make/make.tar.gz -cd ${temp_location}/make/make +wget https://ftp.gnu.org/gnu/make/make-4.3.tar.gz +untar -xf make-4.3.tar.gz +cd make-4.3 export CFLAGS="$CFLAGS -static" ./configure --prefix=/usr make diff --git a/openssl/build b/openssl/build index 46ac1e4..58b6a71 100755 --- a/openssl/build +++ b/openssl/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/openssl/openssl.tar.gz https://www.openssl.org/source/openssl-3.0.0-beta1.tar.gz -tar -xf ${temp_location}/openssl/openssl.tar.gz -cd ${temp_location}/openssl/openssl +wget https://www.openssl.org/source/openssl-3.0.0-beta1.tar.gz +tar -xf openssl-3.0.0-beta1.tar.gz +cd openssl-3.0.0-beta1 chmod +x ./config ./config --prefix="/usr" make diff --git a/xz/build b/xz/build index a6c7d95..f7e7af0 100755 --- a/xz/build +++ b/xz/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/xz/xz.tar.gz https://tukaani.org/xz/xz-5.2.5.tar.gz -tar -xf ${temp_location}/xz/xz.tar.gz -cd ${temp_location}/xz/xz +wget https://tukaani.org/xz/xz-5.2.5.tar.gz +tar -xf xz-5.2.5.tar.gz +cd xz-5.2.5 ./configure --prefix=/usr --disable-nls make make install DESTDIR="$1" diff --git a/zlib/build b/zlib/build index dd328f5..00d106a 100755 --- a/zlib/build +++ b/zlib/build @@ -1,6 +1,6 @@ -wget -O ${temp_location}/zlib/zlib.tar.gz https://zlib.net/zlib-1.2.11.tar.gz -tar -xf ${temp_location}/zlib/zlib.tar.gz -cd ${temp_location}/zlib/zlib +wget https://zlib.net/zlib-1.2.11.tar.gz +tar -xf zlib-1.2.11.tar.gz +cd zlib-1.2.11 export CFLAGS="$CFLAGS -fPIC" ./configure --prefix="$1" --lib-dir="/usr/lib" --shared make