Difference between revisions of "Solaris 12/SPARC64 GCC 5.3.0 cross-compiler instructions"

From Aram's Wiki
Jump to: navigation, search
(Created page with " cd $HOME curl http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz | tar xf - curl http://mirror.inode.at/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.gz | tar xf - mkdir -p binut...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 +
[[Category:Solaris]]
 +
[[Category:GCC]]
 +
 
  cd $HOME  
 
  cd $HOME  
 
  curl http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz | tar xf -  
 
  curl http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz | tar xf -  

Latest revision as of 16:31, 10 November 2019


cd $HOME 
curl http://ftp.gnu.org/gnu/binutils/binutils-2.26.tar.gz | tar xf - 
curl http://mirror.inode.at/gnu/gcc/gcc-5.3.0/gcc-5.3.0.tar.gz | tar xf - 

mkdir -p binutils-build gcc-build 
mkdir -p sparcv9-solaris2.12/usr/include 
mkdir -p sparcv9-solaris2.12/lib 
mkdir -p sparcv9-solaris2.12/usr/lib 

rsync -a torside:/lib/ sparcv9-solaris2.12/lib 
rsync -a torside:/usr/include/ sparcv9-solaris2.12/usr/include 
rsync -a torside:/usr/lib/ sparcv9-solaris2.12/usr/lib 

cd $HOME/binutils-build 
../binutils-2.26/configure --prefix $HOME/xgcc --bindir $HOME/bin --disable-werror --target sparcv9-solaris2.12 --with-sysroot=$HOME/sparcv9-solaris2.12 
make -j5 && make install 

cd $HOME/gcc-5.3.0 
contrib/download_prerequisites 

cd $HOME/gcc-build 
../gcc-5.3.0/configure --prefix $HOME/xgcc --bindir $HOME/bin --target sparcv9-solaris2.12 --with-sysroot=$HOME/sparcv9-solaris2.12 --enable-languages=c --with-gnu-as --with-gnu-ld 
make -j5 && make install