commit 862e875

hovercats  ·  2024-02-20 02:21:17 +0000 UTC
parent 8c86a19
gcc: drop. we will build gcc separatly
7 files changed,  +0, -90
+0, -69
 1@@ -1,69 +0,0 @@
 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/gcc/config/i386/t-linux64 > _
 8-mv -f _ gcc/gcc/config/i386/t-linux64
 9-sed 's/lib64/lib/' gcc/gcc/config/i386/linux64.h > _
10-mv -f _ gcc/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-../gcc/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-cp -f ../c99 "$1/bin"
67-cp -f ../c11 "$1/bin"
68-
69-# Compress manpages
70-gzip -9 -n "$1/share/man/man*/*"
+0, -6
1@@ -1,6 +0,0 @@
2-875af4d704560973ada577955392735ded87e6fd304bd0cbaf8ac795390501c710
3-fffe4996713928ae19331c8ef39129e46d3bf5b7182820656fd4639435cd83a40d
4-f428023b8f7569fc1178faf63265ecb6cab4505fc3fce5d8c46af70db848a3342b
5-86d083c43c08e98d4470c006a01e0df727c8ff56ddd2956b170566ba8c9a46de74
6-0930e07dc2c5bf1172f3fd003a1be7abc3c0c420ce5bd76bc2e514c63800adcb72
7-b66c924fa4336b09809ac4206873bb6527b58d681a69fa4cc057aab14b87b087c3
+0, -4
1@@ -1,4 +0,0 @@
2-#binutils
3-#byacc  make
4-#flex   make
5-#zlib
+0, -2
1@@ -1,2 +0,0 @@
2-#!/bin/sh
3-exec cc -std=c11 "$@"
+0, -2
1@@ -1,2 +0,0 @@
2-#!/bin/sh
3-exec cc -std=c99 "$@"
+0, -6
1@@ -1,6 +0,0 @@
2-https://gcc.gnu.org/pub/gcc/releases/gcc-13.2.0/gcc-13.2.0.tar.xz gcc
3-https://gmplib.org/download/gmp/gmp-6.3.0.tar.xz gcc/gmp
4-https://www.mpfr.org/mpfr-current/mpfr-4.2.1.tar.xz gcc/mpfr
5-https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz gcc/mpc
6-files/c99
7-files/c11
+0, -1
1@@ -1 +0,0 @@
2-13.2.0 1