summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-sdk.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
index e2095e39fd..95d6804e93 100644
--- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
@@ -46,6 +46,13 @@ do_install () {
46 rm -f ${D}${libdir}/../lib/libiberty.a 46 rm -f ${D}${libdir}/../lib/libiberty.a
47 rm -f ${D}${libdir}/libiberty.a 47 rm -f ${D}${libdir}/libiberty.a
48 48
49 # Cleanup empty directories which are not shipped
50 # we use rmdir instead of 'rm -f' to ensure the directories are empty
51 rmdir ${D}${libdir}/../lib
52 rmdir ${D}${prefix}/${TARGET_SYS}/lib
53 rmdir ${D}${prefix}/${TARGET_SYS}
54 rmdir ${D}${includedir}
55
49 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are 56 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
50 # found. 57 # found.
51 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/ 58 dest=${D}${libexecdir}/gcc/${TARGET_SYS}/${BINV}/