gcc: Fix removal of libiberty.a

The changes in commit 553a92c442bc3a35d1520a22e640a3a0e377b8f7 were not applying correctly
due to the error: "find: paths must precede expression"

This patch corrects the find syntax.

[YOCTO #1199]

(From OE-Core rev: b8d72e3af93ff9e2808fef4fe7b9d00b68bf9715)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-07-04 15:37:18 +01:00
parent c2cb8d68c4
commit 21effd6640
5 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
require gcc-common.inc
PR = "r4"
PR = "r5"
# Third digit in PV should be incremented after a minor release
# happens from this branch on gcc e.g. currently its 4.6.0

View File

@ -40,8 +40,8 @@ do_install () {
rm -rf ${D}${datadir}/
# We use libiberty from binutils
find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
# Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
# found. These need to be relative paths so they work in different locations.

View File

@ -29,8 +29,8 @@ do_install () {
done
# We use libiberty from binutils
find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
# gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then

View File

@ -88,8 +88,8 @@ do_install () {
rm -f *gcc-?.?*
# We use libiberty from binutils
find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
# Symlinks so we can use these trivially on the target
ln -sf ${TARGET_PREFIX}g77 g77 || true

View File

@ -1,4 +1,4 @@
PR = "r5"
PR = "r6"
require gcc-${PV}.inc
require gcc-configure-target.inc
require gcc-package-target.inc