]> code.ossystems Code Review - openembedded-core.git/commitdiff
gcc: target: fix libiberty removal
authorConstantin Musca <constantinx.musca@intel.com>
Mon, 4 Feb 2013 09:20:23 +0000 (11:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Feb 2013 16:40:53 +0000 (16:40 +0000)
- use ${libdir} instead of ${exec_prefix}/lib

Fix the following warning:
WARNING: QA Issue: gcc: Files/directories were installed but not shipped
  /usr/lib64/libiberty.a

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.7.inc
meta/recipes-devtools/gcc/gcc-package-target.inc

index d4caf619a7c75c968a67933c948ee08d16bce0d2..2dc81f0543337facf2f27f2c6d63f31f48abda01 100644 (file)
@@ -1,6 +1,6 @@
 require gcc-common.inc
 
-PR = "r15"
+PR = "r16"
 
 # Third digit in PV should be incremented after a minor release
 # happens from this branch on gcc e.g. currently its 4.7.1
index c39aaa8bcbc37962f1b0242a252d9f10342396b7..95a92c1f9115bb36d9c73102e5d318a77119d79f 100644 (file)
@@ -115,8 +115,8 @@ do_install () {
        rm -f *gcc-?.?*
 
        # We use libiberty from binutils
-       find ${D}${exec_prefix}/lib -name libiberty.a | xargs rm -f
-       find ${D}${exec_prefix}/lib -name libiberty.h | xargs rm -f
+       find ${D}${libdir} -name libiberty.a | xargs rm -f
+       find ${D}${libdir} -name libiberty.h | xargs rm -f
 
        # Not sure why we end up with these but we don't want them...
        rm -f ${TARGET_PREFIX}${TARGET_PREFIX}*