rules/gcc/cross: Fixed bug for 64 bit systems, causing libraries to be searched in the wrong directory.
This commit is contained in:
parent
63ce5fa404
commit
020e2c7fe9
@ -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
|
||||
|
Reference in New Issue
Block a user