Revision 18,
899 bytes
checked in by pntsvt00, 14 years ago
(diff) |
compilato us sorgente con architettura SPARC-V9
|
Line | |
---|
1 | compilare sparc-gcc e sparc-binutils su CENTOS: |
---|
2 | |
---|
3 | sudo yum install gmp-devel |
---|
4 | sudo yum install mpfr-devel |
---|
5 | (scaricarle da internet e usare rpm --force --nodep se non le trova) |
---|
6 | |
---|
7 | // |
---|
8 | export TARGET = sparc-sun-solaris2.8 |
---|
9 | export PREFIX = /opt/$TARGET-toolchain |
---|
10 | export SYSROOT= $PREFIX/sysroot |
---|
11 | |
---|
12 | sudo mkdir $PREFIX |
---|
13 | sudo mkdir $SYSROOT |
---|
14 | |
---|
15 | |
---|
16 | cd ~ |
---|
17 | mkdir temp |
---|
18 | cd temp |
---|
19 | wget http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.gz |
---|
20 | wget http://ftp.gnu.org/gnu/gcc/gcc-4.4.2/gcc-4.4.2.tar.gz |
---|
21 | tar -xzf binutils-2.20.tar.gz |
---|
22 | tar -xzf gcc-4.4.2.tar.gz |
---|
23 | mkdir build-binutils |
---|
24 | mkdir build-gcc |
---|
25 | |
---|
26 | cd build-binutils |
---|
27 | ../binutils-2.20/configure -target=$TARGET --prefix=$PREFIX -with-sysroot=$SYSROOT -v |
---|
28 | sudo make all |
---|
29 | sudo make install |
---|
30 | |
---|
31 | |
---|
32 | cd ../build-gcc |
---|
33 | ../gcc-4.4.2/configure --target=$TARGET --wth-gnu-as --with-gnu-ld --prefix=$PREFIX -wth-sysroot=$SYSROOT --dsiable-libgc \ |
---|
34 | --without-headers |
---|
35 | sudo make -k |
---|
36 | sudo make install |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.