gcc: unbundle gmp, libmpc, mpfr

This commit is contained in:
git-bruh 2022-09-30 15:10:30 +05:30
parent d9b75dcb0b
commit a8719fbdeb
No known key found for this signature in database
20 changed files with 50 additions and 17 deletions

View File

@ -1,14 +1,10 @@
#!/bin/sh -e
# Make sure gmp is built with generic options.
cp gcc/gmp/configfsf.guess gcc/gmp/config.guess
cp gcc/gmp/configfsf.sub gcc/gmp/config.sub
# Use lib not lib64 by default.
sed '/m64=/s/lib64/lib/' gcc/gcc/config/i386/t-linux64 > _
mv -f _ gcc/gcc/config/i386/t-linux64
sed 's/lib64/lib/' gcc/gcc/config/i386/linux64.h > _
mv -f _ gcc/gcc/config/i386/linux64.h
sed '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64 > _
mv -f _ gcc/config/i386/t-linux64
sed 's/lib64/lib/' gcc/config/i386/linux64.h > _
mv -f _ gcc/config/i386/linux64.h
# Build must happen outside of gcc source.
mkdir -p gcc-build
@ -23,7 +19,7 @@ case $2 in "${gcc_version%%.*}"*)
bootstrap=--disable-bootstrap
esac
../gcc/configure \
../configure \
libat_cv_have_ifunc=no \
--prefix=/usr \
--libexecdir=/usr/lib \

View File

@ -1,5 +1,2 @@
e549cf9cf3594a00e27b6589d4322d70e0720cdd213f39beb4181e06926230ff
fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2
0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f
17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459
765614b3396d70bca3fa0ae4a813632486c6dca320e2bd13c8c39dca52be4a4c

View File

@ -1,4 +1,7 @@
binutils
bison make
flex make
gmp
libmpc
mpfr
zlib

View File

@ -1,5 +1,2 @@
https://gcc.gnu.org/pub/gcc/releases/gcc-VERSION/gcc-VERSION.tar.xz gcc
https://ftp.gnu.org/gnu/gmp/gmp-6.2.1.tar.xz gcc/gmp
https://ftp.gnu.org/gnu/mpfr/mpfr-4.1.0.tar.xz gcc/mpfr
https://ftp.gnu.org/gnu/mpc/mpc-1.2.1.tar.gz gcc/mpc
https://gcc.gnu.org/pub/gcc/releases/gcc-VERSION/gcc-VERSION.tar.xz
files/c99

View File

@ -1 +1 @@
12.2.0 1
12.2.0 2

11
core/gmp/build Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh -e
./configure \
--prefix=/usr \
--localstatedir=/var/state/gmp \
--enable-cxx \
--enable-fat \
--with-pic
make
make DESTDIR="$1" install

1
core/gmp/checksums Normal file
View File

@ -0,0 +1 @@
fd4829912cddd12f84181c3451cc752be224643e87fac497b69edddadc49b4f2

1
core/gmp/depends Normal file
View File

@ -0,0 +1 @@
m4 make

1
core/gmp/sources Normal file
View File

@ -0,0 +1 @@
https://gmplib.org/download/gmp/gmp-VERSION.tar.xz

1
core/gmp/version Normal file
View File

@ -0,0 +1 @@
6.2.1 1

8
core/libmpc/build Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh -e
./configure \
--prefix=/usr \
--enable-shared
make
make DESTDIR="$1" install

1
core/libmpc/checksums Normal file
View File

@ -0,0 +1 @@
17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459

1
core/libmpc/depends Normal file
View File

@ -0,0 +1 @@
mpfr

1
core/libmpc/sources Normal file
View File

@ -0,0 +1 @@
https://ftp.gnu.org/gnu/mpc/mpc-VERSION.tar.gz

1
core/libmpc/version Normal file
View File

@ -0,0 +1 @@
1.2.1 1

9
core/mpfr/build Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh -e
./configure \
--prefix=/usr \
--enable-shared \
--enable-thread-safe
make
make DESTDIR="$1" install

1
core/mpfr/checksums Normal file
View File

@ -0,0 +1 @@
0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f

1
core/mpfr/depends Normal file
View File

@ -0,0 +1 @@
gmp

1
core/mpfr/sources Normal file
View File

@ -0,0 +1 @@
https://www.mpfr.org/mpfr-current/mpfr-VERSION.tar.xz

1
core/mpfr/version Normal file
View File

@ -0,0 +1 @@
4.1.0 1