This commit is contained in:
Krzesimir Nowak 2026-02-05 18:14:04 +01:00
parent fb25e776d8
commit 5a5c4e0df2

View File

@ -38,13 +38,13 @@ build_target_toolchain() {
# the dependency chain when building toolchain
btt_emerge --oneshot --nodeps sys-apps/baselayout
# copy libraries from sysroot to root - sysroot seems to be
# copy libraries and binaries from sysroot to root - sysroot seems to be
# split-usr, whereas root does not, so take this into account
(
shopt -s nullglob
local d f
local -a files
for d in "${SYSROOT}"/lib* "${SYSROOT}"/usr/lib*; do
for d in "${SYSROOT}"/lib* "${SYSROOT}"/usr/lib* "${SYSROOT}"/{usr/,}{bin,sbin}; do
if [[ ! -d ${d} ]]; then
continue
fi