NB:
1. minimally tested but it seems to compile and build simple programs and
libraries (32 and 64 bits)
2. I'd like to clean this up a lot, but at the same time I'd rather just use
the tools than building them
3. Obviously you can set the "--prefix" flag to whatever you want, I just use
/opt/local.
Ugly hacks to build GCC 4.3.2 on snv_98 x86 on a Centrino dual:
1. build gmp and mpfr using /usr/sfw/bin/gcc
- did two builds of each, 32bit and 64bit versions in /opt/local/lib and
/opt/local/lib/amd64
- built 32bit version and did a "make install"
- built 64bit version and manually copied the 64bit libraries and created
sym link
2. build gcc 4.3.2
- configure --with-gnu-as --with-as=/usr/sfw/bin/gas --without-gnu-ld
--with-ld=/usr/ccs/bin/ld --enable-languages=c,c++ --prefix=/opt/local
--with-gmp=/opt/local --with-mpfr=/opt/local
- type "make": after a while it'll fail
- to "fix": export LD_LIBRARY_PATH=/opt/local/lib and type "make" again
- as root make install
Use the attached "specs" below to correctly build 32 and 64-bit libraries and
copy it to /opt/local/lib/gcc/i386-pc-solaris2.11/4.3.2.
--
This message posted from opensolaris.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: specs
Type: application/octet-stream
Size: 5911 bytes
Desc: not available
URL:
<http://mail.opensolaris.org/pipermail/tools-compilers/attachments/20080927/0c46f182/attachment.obj>