binutils.build 529 B

1234567891011121314151617181920212223242526
  1. cd $tmpdir
  2. # Downloading binutils sources
  3. if [ ! -f "$binutils" ]; then
  4. echo "Downloading binutils sources..."
  5. wget $binutilsmirror/$binutils
  6. tar -xf $binutils
  7. fi
  8. # Configure Binutils
  9. if [ ! -d "${binutilssrcdir}-build" ]; then
  10. mkdir ${binutilssrcdir}-build
  11. fi
  12. cd ${binutilssrcdir}-build
  13. ../$binutilssrcdir/configure --prefix=$freondir --enable-shared
  14. make tooldir=$freondir -j$corecount
  15. make tooldir=$freondir install
  16. cp -v ../$binutilssrcdir/include/libiberty.h $freondir/include
  17. cd $tmpdir