commit 8795646

hovercats  ·  2024-01-03 19:25:59 +0000 UTC
parent afbd612
gcc: add from kiss repo + deps
21 files changed,  +125, -0
+67, -0
 1@@ -0,0 +1,67 @@
 2+#!/bin/sh -e
 3+
 4+export LDFLAGS="$LDFLAGS  --static"
 5+
 6+# Use lib not lib64 by default.
 7+sed '/m64=/s/lib64/lib/' gcc/config/i386/t-linux64 > _
 8+mv -f _ gcc/config/i386/t-linux64
 9+sed 's/lib64/lib/' gcc/config/i386/linux64.h > _
10+mv -f _ gcc/config/i386/linux64.h
11+
12+# Build must happen outside of gcc source.
13+mkdir -p gcc-build
14+cd gcc-build
15+
16+# Grab the system's GCC version.
17+gcc_version=$(gcc -dumpversion) || gcc_version=null
18+
19+# Skip the bootstrap process if we are able.
20+case $2 in "$gcc_version"*)
21+    printf '%s\n' "Minor version difference, disabling bootstrap."
22+    bootstrap=--disable-bootstrap
23+esac
24+
25+../configure \
26+    libat_cv_have_ifunc=no \
27+    --prefix=/ \
28+    --libexecdir=/lib \
29+    --mandir=/share/man \
30+    --infodir=/share/info \
31+    --disable-multilib \
32+    --disable-symvers \
33+    --disable-libmpx \
34+    --disable-libmudflap \
35+    --disable-libsanitizer \
36+    --disable-werror \
37+    --disable-fixed-point \
38+    --disable-libstdcxx-pch \
39+    --disable-nls \
40+    --enable-checking=release \
41+    --enable-__cxa_atexit \
42+    --enable-default-pie \
43+    --enable-default-ssp \
44+    --enable-shared \
45+    --enable-threads \
46+    --enable-tls \
47+    --enable-initfini-array \
48+    --enable-languages=c,c++ \
49+    --without-included-gettext \
50+    --with-zstd=no \
51+    --with-system-zlib \
52+    --build=x86_64-linux-musl \
53+    --disable-lto \
54+    "${bootstrap:---enable-bootstrap}"
55+
56+make 
57+make DESTDIR="$1" install 
58+
59+# Save 35MB.
60+find "$1" -name libgtkpeer.a  -exec rm -f {} +
61+find "$1" -name libgjsmalsa.a -exec rm -f {} +
62+find "$1" -name libgij.a      -exec rm -f {} +
63+
64+ln -sf gcc "$1/bin/cc"
65+ln -sf x86_64-linux-musl-gcc "$1/bin/x86_64-linux-musl-cc"
66+ln -sf x86_64-linux-musl-gcc-ar "$1/bin/x86_64-linux-musl-ar"
67+ln -sf x86_64-linux-musl-gcc-ranlib "$1/bin/x86_64-linux-musl-ranlib"
68+cp -f ../c99 "$1/bin"
+2, -0
1@@ -0,0 +1,2 @@
2+875af4d704560973ada577955392735ded87e6fd304bd0cbaf8ac795390501c710
3+0930e07dc2c5bf1172f3fd003a1be7abc3c0c420ce5bd76bc2e514c63800adcb72
+7, -0
1@@ -0,0 +1,7 @@
2+#binutils
3+#byacc  make
4+#flex   make
5+gmp    make
6+libmpc make
7+mpfr   make
8+#zlib
+2, -0
1@@ -0,0 +1,2 @@
2+#!/bin/sh
3+exec cc -std=c99 "$@"
+2, -0
1@@ -0,0 +1,2 @@
2+https://gcc.gnu.org/pub/gcc/releases/gcc-13.2.0/gcc-13.2.0.tar.xz
3+files/c99
+1, -0
1@@ -0,0 +1 @@
2+13.2.0 1
+12, -0
 1@@ -0,0 +1,12 @@
 2+#!/bin/sh -e
 3+
 4+./configure \
 5+    --prefix=/ \
 6+    --localstatedir=/var/state/gmp \
 7+    --enable-cxx \
 8+    --enable-fat \
 9+    --with-pic \
10+    --disable-shared
11+
12+make
13+make DESTDIR="$1" install
+1, -0
1@@ -0,0 +1 @@
2+fffe4996713928ae19331c8ef39129e46d3bf5b7182820656fd4639435cd83a40d
+1, -0
1@@ -0,0 +1 @@
2+#m4 make
+1, -0
1@@ -0,0 +1 @@
2+https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz
+1, -0
1@@ -0,0 +1 @@
2+6.3.0 1
+8, -0
1@@ -0,0 +1,8 @@
2+#!/bin/sh -e
3+
4+./configure \
5+    --prefix=/ \
6+    --disable-shared
7+
8+make
9+make DESTDIR="$1" install
+1, -0
1@@ -0,0 +1 @@
2+86d083c43c08e98d4470c006a01e0df727c8ff56ddd2956b170566ba8c9a46de74
+1, -0
1@@ -0,0 +1 @@
2+mpfr
+1, -0
1@@ -0,0 +1 @@
2+https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
+1, -0
1@@ -0,0 +1 @@
2+1.3.1 1
+12, -0
 1@@ -0,0 +1,12 @@
 2+#!/bin/sh -e
 3+
 4+./configure \
 5+    --prefix=/ \
 6+    --disable-shared \
 7+    --enable-thread-safe
 8+
 9+make
10+make DESTDIR="$1" install
11+
12+# shellcheck disable=SC2115
13+rm -rf "$1/share/"
+1, -0
1@@ -0,0 +1 @@
2+f428023b8f7569fc1178faf63265ecb6cab4505fc3fce5d8c46af70db848a3342b
+1, -0
1@@ -0,0 +1 @@
2+gmp
+1, -0
1@@ -0,0 +1 @@
2+https://www.mpfr.org/mpfr-current/mpfr-4.2.1.tar.xz
+1, -0
1@@ -0,0 +1 @@
2+4.2.1 1