summaryrefslogtreecommitdiff
path: root/repo/core/gcc.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/core/gcc.xibuild')
-rw-r--r--repo/core/gcc.xibuild24
1 files changed, 24 insertions, 0 deletions
diff --git a/repo/core/gcc.xibuild b/repo/core/gcc.xibuild
new file mode 100644
index 0000000..f72f02b
--- /dev/null
+++ b/repo/core/gcc.xibuild
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+DEPS=(glibc)
+
+SOURCE=https://mirrorservice.org/sites/sourceware.org/pub/gcc/releases/gcc-11.2.0/gcc-11.2.0.tar.xz
+
+
+build () {
+ case $(uname -m) in
+ x86_64)
+ sed -e '/m64=/s/lib64/lib/' \
+ -i.orig gcc/config/i386/t-linux64
+ ;;
+esac
+
+
+
+ mkdir -v build
+ cd build
+ ../configure --prefix=/usr --disable-multilib --disable-bootstrap
+ make
+ make DESTDIR=$PKG_DEST install
+}
+