source: XOpenSparcT1/trunk/sw/README @ 18

Revision 18, 899 bytes checked in by pntsvt00, 14 years ago (diff)

compilato us sorgente con architettura SPARC-V9

Line 
1compilare sparc-gcc e sparc-binutils su CENTOS:
2
3sudo yum install gmp-devel
4sudo yum install mpfr-devel
5(scaricarle da internet e usare rpm --force --nodep se non le trova)
6
7//
8export TARGET = sparc-sun-solaris2.8
9export PREFIX = /opt/$TARGET-toolchain
10export SYSROOT= $PREFIX/sysroot
11
12sudo mkdir $PREFIX
13sudo mkdir $SYSROOT
14
15
16cd ~
17mkdir temp
18cd temp
19wget http://ftp.gnu.org/gnu/binutils/binutils-2.20.tar.gz
20wget http://ftp.gnu.org/gnu/gcc/gcc-4.4.2/gcc-4.4.2.tar.gz
21tar -xzf binutils-2.20.tar.gz
22tar -xzf gcc-4.4.2.tar.gz
23mkdir build-binutils
24mkdir build-gcc
25
26cd build-binutils
27../binutils-2.20/configure -target=$TARGET --prefix=$PREFIX -with-sysroot=$SYSROOT -v
28sudo make all
29sudo make install
30
31
32cd ../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
35sudo make -k
36sudo make install
37       
Note: See TracBrowser for help on using the repository browser.