summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-09-17 00:58:25 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2009-09-17 22:25:23 +0100
commit31a82c65ae27b51ff8556cc11026da616df50a9f (patch)
tree86f49ec526a3e474e246f620085b6e8088684cdf /meta
parent00127b3744a10696dd8f554fd3bd60bfc06d198c (diff)
downloadopenembedded-core-31a82c65ae27b51ff8556cc11026da616df50a9f.tar.gz
openembedded-core-31a82c65ae27b51ff8556cc11026da616df50a9f.tar.bz2
openembedded-core-31a82c65ae27b51ff8556cc11026da616df50a9f.tar.xz
openembedded-core-31a82c65ae27b51ff8556cc11026da616df50a9f.zip
gcc-package-cross: Cope with lib64 binaries
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/gcc/gcc-package-cross.inc11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/packages/gcc/gcc-package-cross.inc b/meta/packages/gcc/gcc-package-cross.inc
index b95ef88e6..9e54af856 100644
--- a/meta/packages/gcc/gcc-package-cross.inc
+++ b/meta/packages/gcc/gcc-package-cross.inc
@@ -25,9 +25,10 @@ do_install () {
:
elif [ -f ${D}${prefix}/lib/libgcc_s.so.? ]; then
mv -f ${D}${prefix}/lib/libgcc_s.so* ${D}${target_base_libdir} || true
-
elif [ -f ${D}${prefix}/*/lib/nof/libgcc_s.so.? ]; then
mv -f ${D}${prefix}/*/lib/nof/libgcc_s.so* ${D}${target_base_libdir}
+ elif [ -f ${D}${prefix}/*/lib64/libgcc_s.so.? ]; then
+ mv -f ${D}${prefix}/*/lib64/libgcc_s.so* ${D}${target_base_libdir} || true
else
mv -f ${D}${prefix}/*/lib/libgcc_s.so* ${D}${target_base_libdir} || true
fi
@@ -43,7 +44,11 @@ do_install () {
mv -f ${D}${prefix}/*/lib/nof/libg2c.so* ${D}${target_libdir} || true
mv -f ${D}${prefix}/*/lib/nof/libgfortran*.so* ${D}${target_libdir} || true
mv -f ${D}${prefix}/*/lib/nof/libssp*.so* ${D}${target_libdir} || true
-
+ elif [ -f ${D}${prefix}/*/lib64/libstdc++.so ]; then
+ mv -f ${D}${prefix}/*/lib64/libstdc++.so* ${D}${target_libdir} || true
+ mv -f ${D}${prefix}/*/lib64/libg2c.so* ${D}${target_libdir} || true
+ mv -f ${D}${prefix}/*/lib64/libgfortran*.so* ${D}${target_libdir} || true
+ mv -f ${D}${prefix}/*/lib64/libssp*.so* ${D}${target_libdir} || true
else
mv -f ${D}${prefix}/*/lib/libstdc++.so* ${D}${target_libdir} || true
mv -f ${D}${prefix}/*/lib/libg2c.so* ${D}${target_libdir} || true
@@ -51,8 +56,6 @@ do_install () {
mv -f ${D}${prefix}/*/lib/libssp*.so* ${D}${target_libdir} || true
fi
-
-
# Manually run the target stripper since we won't get it run by
# the packaging.
if [ "x${OLD_INHIBIT_PACKAGE_STRIP}" != "x1" ]; then