glibc-sysroot-setup.inc: create /usr/lib after stash_locale_cleanup

stash_locale_cleanup removes the empty /usr/lib after stashing the locale
files to avoid remnant clutter, but we need it in the sysroot, so we
need to move the creation of the directory after the cleanup to fix our
aarch64 builds.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
This commit is contained in:
Christopher Larson
2020-01-27 15:54:12 +00:00
parent cda7cdd663
commit a8684e7ee1

View File

@@ -1,5 +1,6 @@
SYSROOT_PREPROCESS_FUNCS += "external_toolchain_sysroot_adjust"
external_toolchain_sysroot_adjust() {
# stash_locale_cleanup removes the empty /usr/lib after stashing the locale
# files to avoid remnant clutter, but we need it in the sysroot
stash_locale_sysroot_cleanup_append() {
# If the usr/lib directory doesn't exist, the toolchain fails to even
# try to find crti.o in a completely different directory (usr/lib64)
install -d ${SYSROOT_DESTDIR}${nonarch_libdir}