Old version off gcc was already installed so I used it.
bunzip2 gcc-4.1.1.tar.bz2
/usr/sfw/bin/gtar xvf gcc-4.1.1.tar
cd gcc-4.1.1
We need gnu make
ln -s /usr/sfw/bin/gmake /usr/sbin/make
Env variables
export PATH=/usr/ucb:/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin
export CC=gcc
Configure with recommended options
./configure --with-as=/usr/sfw/bin/gas --with-gnu-as --with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++ --enable-shared
make
make install
Friday, 11 July 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment