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 4d392d3b53
commit 37ad836dea
1 changed files with 8 additions and 3 deletions

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