summaryrefslogtreecommitdiff
path: root/gcc-7/build
diff options
context:
space:
mode:
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