blob: e3acc4335fa3f353c115f191b7c3e615a769c075 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|