明牯工作室 - 嵌入式软件服务

Build - Open Source

| Comments



gcc-4.1.2编译 - ubuntu 12.04 x86

参考:http://csl.skku.edu/SSE3044F12/GCC
配置相关库路径:

cd /usr/include \
sudo ln -s i386-linux-gnu/bits bits \
sudo ln -s i386-linux-gnu/gnu gnu \
sudo ln -s i386-linux-gnu/sys sys \
sudo ln -s i386-linux-gnu/asm asm \
cd /usr/lib \
sudo ln -s i386-linux-gnu/crt1.o crt1.o \
sudo ln -s i386-linux-gnu/crti.o crti.o \
sudo ln -s i386-linux-gnu/crtn.o crtn.o

配置生成makefile:

../gcc-4.1.2/configure --prefix=/home/meegoo/workspace/toolchains/gcc-4.1.2 --libexecdir=/home/meegoo/workspace/toolchains/gcc-4.1.2 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --enable-languages=c,c++ 

编译:

make bootstrap MAKEINFO=makeinfo

安装:

make install

binutils-2.17编译 - ubuntu 12.04 x86

配置生成makefile:

../binutils-2.17/configure --prefix=/home/meegoo/workspace/toolchains/binutils-2.17 --enable-shared

编译:

make tooldir=/home/meegoo/workspace/toolchains/binutils-2.17

安装:

make tooldir=/home/meegoo/workspace/toolchains/binutils-2.17 install

Comments