glibc-sysroot-setup.inc 634 B

123456789101112131415
  1. # stash_locale_cleanup removes the empty /usr/lib after stashing the locale
  2. # files to avoid remnant clutter, but we need it in the sysroot
  3. SYSROOT_PREPROCESS_FUNCS += "external_toolchain_sysroot_adjust"
  4. external_toolchain_sysroot_adjust() {
  5. # If the usr/lib directory doesn't exist, the toolchain fails to even
  6. # try to find crti.o in a completely different directory (usr/lib64)
  7. install -d ${SYSROOT_DESTDIR}${nonarch_libdir}
  8. install -d ${SYSROOT_DESTDIR}/lib64xthead/
  9. ln -s ../lib ${SYSROOT_DESTDIR}/lib64xthead/lp64d
  10. install -d ${SYSROOT_DESTDIR}/usr/lib64xthead/
  11. ln -s ../lib ${SYSROOT_DESTDIR}/usr/lib64xthead/lp64d
  12. }