talimat 753 B

123456789101112131415161718192021222324252627282930313233343536
  1. version=2.23
  2. source=(\
  3. http://ftp.gnu.org/gnu/glibc/glibc-$version.tar.xz
  4. )
  5. derle()
  6. {
  7. cd glibc-$version
  8. mkdir -v build
  9. cd build
  10. ../configure \
  11. --prefix=/tools \
  12. --host=$LFS_TGT \
  13. --build=$(../scripts/config.guess) \
  14. --disable-profile \
  15. --enable-kernel=2.6.32 \
  16. --enable-obsolete-rpc \
  17. --with-headers=/tools/include \
  18. libc_cv_forced_unwind=yes \
  19. libc_cv_ctors_header=yes \
  20. libc_cv_c_cleanup=yes
  21. make
  22. # Evite le fail de make install
  23. rm -rf /tools/share/info/dir
  24. make install
  25. echo 'main(){}' > dummy.c
  26. $LFS_TGT-gcc dummy.c
  27. echo $(readelf -l a.out | grep ': /tools')
  28. rm -v dummy.c a.out
  29. }