diff --git a/build-rootfs.sh b/build-rootfs.sh index 6a9d1f3..e377363 100755 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -76,6 +76,14 @@ if [ -f /mnt/gentoo/etc/udev/hwdb.bin ]; then mv /mnt/gentoo/etc/udev/hwdb.bin /mnt/gentoo/usr/lib/udev/ fi +gccver=$(qlist -I -F '%{PV}' cross-${target}/gcc | sed 's/[^0-9].*//') +for lib in \ + libstdc++ \ + libgcc_s \ +; do + cp /usr/lib/gcc/${target}/${gccver}/${lib}.so.* /mnt/gentoo/usr/lib64/ +done + qemu-${target%%-*} \ /mnt/gentoo/usr/sbin/ldconfig \ -r /mnt/gentoo \