rules/gcc/cross: Fixed bug for 64 bit systems, causing libraries to be searched in the wrong directory.

This commit is contained in:
Tiago Marques 2017-08-29 19:19:46 +01:00
parent 63ce5fa404
commit 020e2c7fe9

View File

@ -49,10 +49,15 @@ host_install()
target_install()
{
$cmd_mkdir \
"$cfg_dir_rootfs/usr/lib" &&
libdir=lib
if [ -d "$cfg_dir_toolchain/$cfg_target_canonical/lib64" ]; then
libdir=lib64
fi
for f in "$cfg_dir_toolchain/$cfg_target_canonical/lib/"{libgcc_s,libstdc++}.so*; do
$cmd_mkdir \
"$cfg_dir_rootfs/usr/$libdir" &&
for f in "$cfg_dir_toolchain/$cfg_target_canonical/$libdir/"{libgcc_s,libstdc++}.so*; do
base="$(basename $f)"
if [ $(echo "$base" | grep '\.py' 2> /dev/null) ]; then