summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-package-sdk.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-package-sdk.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-package-sdk.inc11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-package-sdk.inc b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
index 95d6804e93..0cf62f1130 100644
--- a/meta/recipes-devtools/gcc/gcc-package-sdk.inc
+++ b/meta/recipes-devtools/gcc/gcc-package-sdk.inc
@@ -47,11 +47,12 @@ do_install () {
47 rm -f ${D}${libdir}/libiberty.a 47 rm -f ${D}${libdir}/libiberty.a
48 48
49 # Cleanup empty directories which are not shipped 49 # Cleanup empty directories which are not shipped
50 # we use rmdir instead of 'rm -f' to ensure the directories are empty 50 # we use rmdir instead of 'rm -f' to ensure the non empty directories are not deleted
51 rmdir ${D}${libdir}/../lib 51 # ${D}${libdir}/../lib only seems to appear with SDKMACHINE=i686
52 rmdir ${D}${prefix}/${TARGET_SYS}/lib 52 local empty_dirs="${D}${libdir}/../lib ${D}${prefix}/${TARGET_SYS}/lib ${D}${prefix}/${TARGET_SYS} ${D}${includedir}"
53 rmdir ${D}${prefix}/${TARGET_SYS} 53 for i in $empty_dirs; do
54 rmdir ${D}${includedir} 54 [ -d $i ] && rmdir --ignore-fail-on-non-empty $i
55 done
55 56
56 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are 57 # Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
57 # found. 58 # found.