talimat 644 B

1234567891011121314151617181920212223242526272829
  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. build()
  5. {
  6. cd binutils-$version
  7. patch -Np1 -i ../binutils-$version-upstream_fix-2.patch
  8. mkdir -v build
  9. cd build
  10. CC=$LFS_TGT-gcc \
  11. AR=$LFS_TGT-ar \
  12. RANLIB=$LFS_TGT-ranlib \
  13. ../configure \
  14. --prefix=/tools \
  15. --disable-nls \
  16. --disable-werror \
  17. --with-lib-path=/tools/lib \
  18. --with-sysroot
  19. make
  20. make install
  21. make -C ld clean
  22. make -C ld LIB_PATH=/usr/lib:/lib
  23. cp -v ld/ld-new /tools/bin
  24. }