xref: /illumos-gcc-4.4.4/README.md (revision ff286311)
1This is the GCC used for compiling illumos.
2
3The `il-*` branches contain the the patches used for building illumos, which
4are rebased versions of those used for Solaris/OpenSolaris, and then
5additional changes.  The versions actually in use are tagged with
6`il-VERSION-ilN` where _N_ version the illumos changes over the GCC version in
7question.
8
9The `wip/*` branches are works in progress and _should never be used_
10
11The `codesourcery/*` and `sun/*` branches contain the original GCCs as patched by
12CodeSourcery and Sun Microsystems for use compiling Solaris and OpenSolaris as
13was, and the GCCFSS patches of Sun's
14
15When building the compilers for illumos use the flags generally used are:
16
17i386
18~~~sh
19../../configure --prefix=/opt/gcc/$VER --with-as=/usr/sfw/bin/gas --with-gnu-as \
20   --with-ld=/usr/bin/ld --without-gnu-ld --enable-languages="c,c++,objc" \
21   --enable-shared  --with-mpfr-include=/usr/include/mpfr \
22   --with-gmp-include=/usr/include/gmp \
23   --with-pkgversion="Illumos $(git describe --all)" \
24   --with-bugurl="http://github.com/richlowe/gcc/issues"
25~~~
26
27sparc
28~~~sh
29../../configure --prefix=/opt/gcc/$VER --without-gnu-as --with-as=/usr/ccs/bin/as" \
30   --with-ld=/usr/bin/ld --without-gnu-ld --enable-languages="c,c++,objc" \
31   --enable-shared  --with-mpfr-include=/usr/include/mpfr \
32   --with-gmp-include=/usr/include/gmp \
33   --with-pkgversion="Illumos $(git describe --all)" \
34   --with-bugurl="http://github.com/richlowe/gcc/issues"
35~~~
36
37Please use the correct `--with-bugurl` and `--with-pkgversion` flags as
38appropriate for any modifications you make, but please also be sure that they
39accurately describe what is in use (ie, are not left at the defaults) either.
40