summaryrefslogtreecommitdiff
path: root/gcc-7/build
diff options
context:
space:
mode:
authorAlejandro W. Sior <aho@sior.be>2023-02-03 10:03:37 +0100
committerAlejandro W. Sior <aho@sior.be>2023-02-03 10:03:37 +0100
commita7417a86fa394efa45dc5a1b87cc10864e2be20f (patch)
tree2bc0d9965931f26eaa263615128e607afe84afcf /gcc-7/build
parentf368e42a125c34ce7ad628f3051dd7ae730ff8ad (diff)
gcc-7: rename from gcc-7-il, add quality of life patches
Diffstat (limited to 'gcc-7/build')
-rw-r--r--gcc-7/build27
1 files changed, 27 insertions, 0 deletions
diff --git a/gcc-7/build b/gcc-7/build
new file mode 100644
index 0000000..e3acc43
--- /dev/null
+++ b/gcc-7/build
@@ -0,0 +1,27 @@
+#!/bin/sh -e
+
+cd gcc
+
+for patch in *.patch; do
+ patch -p1 < $patch
+done
+
+cd ..
+mkdir build
+cd build
+
+# Configure gcc
+../gcc/configure \
+ --prefix=/usr/gcc/7 \
+ --with-as=/usr/bin/gas \
+ --with-gnu-as \
+ --with-ld=/usr/bin/ld \
+ --without-gnu-ld \
+ --enable-languages="c,c++,objc" \
+ --enable-shared \
+ --disable-bootstrap \
+ --with-pkgversion="Illumos Edelweiss" \
+ --with-bugurl="https://github.com/richlowe/gcc/issues"
+
+gmake
+gmake DESTDIR="$1" install