gcc: handle lib64 properly.

This commit is contained in:
Ricardo Martins 2015-12-28 10:38:14 +00:00
parent ed4aa926ce
commit e3a9b36e2c

View File

@ -32,16 +32,19 @@ build()
host_install()
{
libdir=lib
if [ -d "$cfg_dir_toolchain/$cfg_target_canonical/lib64" ]; then
libdir=lib64
fi
$cmd_make install &&
for l in lib lib64; do
cp -d \
"$cfg_dir_toolchain/$cfg_target_canonical/$l"/libgcc_s.so* \
"$cfg_dir_toolchain/$cfg_target_canonical/$libdir"/libgcc_s.so* \
"$cfg_dir_toolchain_sysroot/lib" &&
cp -d \
"$cfg_dir_toolchain/$cfg_target_canonical/$l"/libstdc++.so* \
"$cfg_dir_toolchain/$cfg_target_canonical/$libdir"/libstdc++.so* \
"$cfg_dir_toolchain_sysroot/usr/lib"
done
}
target_install()