talimat 595 B

1234567891011121314151617181920212223242526
  1. version=2.26
  2. source=(http://ftp.gnu.org/gnu/binutils/binutils-$version.tar.bz2
  3. http://www.linuxfromscratch.org/patches/lfs/development/binutils-$version-upstream_fix-2.patch)
  4. derle()
  5. {
  6. cd binutils-$version
  7. patch -Np1 -i ../binutils-$version-upstream_fix-2.patch
  8. mkdir -v build
  9. cd build
  10. ../configure \
  11. --prefix=/tools \
  12. --with-sysroot=$LFS \
  13. --with-lib-path=/tools/lib \
  14. --target=$LFS_TGT \
  15. --disable-nls \
  16. --disable-werror
  17. make
  18. case $(uname -m) in
  19. x86_64) mkdir -v /tools/lib && ln -sv lib /tools/lib64 ;;
  20. esac
  21. make install
  22. }