Guest User

Untitled

a guest
Jan 19th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.51 KB | None | 0 0
  1. ../configure --prefix=${LFS}/tools
  2. --with-sysroot=$LFS
  3. --with-lib-path=${LFS}/tools/lib
  4. --target=$LFS_TGT
  5. --disable-nls
  6. --disable-werror
  7.  
  8. x86_64-lfs-linux-gnu-ld: cannot find -lc
  9.  
  10. x86_64-lfs-linux-gnu-ld: cannot find ${LFS}/tools/lib/libc.so.6 inside ${LFS}
  11.  
  12. ../configure --prefix=${LFS}/tools
  13. --with-sysroot=$LFS
  14. --with-lib-path=tools/lib # this is changed
  15. --target=$LFS_TGT
  16. --disable-nls
  17. --disable-werror
  18.  
  19. /* GNU ld script
  20. Use the shared library, but some functions are only in
  21. the static library, so try that secondarily. */
  22. OUTPUT_FORMAT(elf64-x86-64)
  23. GROUP ( ${LFS}/tools/lib/libc.so.6 ${LFS}/tools/lib/libc_nonshared.a AS_NEEDED ( ${LFS}/tools/lib/ld-linux-x86-64.so.2 ) )
  24.  
  25. install: $(inst_libdir)/libc.so
  26. $(inst_libdir)/libc.so: $(common-objpfx)format.lds
  27. $(common-objpfx)libc.so$(libc.so-version)
  28. $(inst_libdir)/$(patsubst %,$(libtype.oS),
  29. $(libprefix)$(libc-name))
  30. $(+force)
  31. (echo '/* GNU ld script';
  32. echo ' Use the shared library, but some functions are only in';
  33. echo ' the static library, so try that secondarily. */';
  34. cat $<;
  35. echo 'GROUP ( $(slibdir)/libc.so$(libc.so-version)'
  36. '$(libdir)/$(patsubst %,$(libtype.oS),$(libprefix)$(libc-name))'
  37. ' AS_NEEDED (' $(rtlddir)/$(rtld-installed-name) ') )'
  38. ) > $@.new
  39. mv -f $@.new $@
Add Comment
Please, Sign In to add comment