gcc.static

Current Version: 3.1

Links

dir: ftp://ftp.gnu.org/pub/gnu/gcc

file: gcc-3.1.tar.gz

alternative: gcc-3.1.tar.bz2

patch:

Needs

bash binutils diffutils fileutils findutils gcc grep make mawk patch sed sh-utils tar textutils

Setup information

mkdir ../gcc-build 

pre

cd ../gcc-build 

init

../gcc-3.1/configure --prefix=/static \
	--enable-languages=c,c++ --disable-nls \
	--disable-shared --enable-threads=posix 
echo "#define HAVE_GAS_HIDDEN 1" >> gcc/auto-host.h 

config

make BOOT_LDFLAGS=-static bootstrap 

make

make prefix=/usr install 

install

ln -sf gcc //static/bin/cc 

post