由于eCos需要mips-elf-gcc来编译内核,所以,今天编译了gcc4.4.1最新版本的gcc编译器,步骤如下:
首先,在编译之前必须先导出以下变量:
export TARGET=mips-elf
export PREFIX=/usr/local/$TARGET
export PATH=$PATH:$PREFIX/bin
echo $TARGET
echo $PREFIX
echo $PATH
===================
编译环境:FC9
GCC版本如下:
使用内建 specs。
目标:i386-redhat-linux
配置为:../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-ds