diff options
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-configure-runtime.inc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc index a9f77d9b64..977a98a377 100644 --- a/meta/recipes-devtools/gcc/gcc-configure-runtime.inc +++ b/meta/recipes-devtools/gcc/gcc-configure-runtime.inc | |||
@@ -43,8 +43,12 @@ do_install () { | |||
43 | oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$d/ install | 43 | oe_runmake 'DESTDIR=${D}' MULTIBUILDTOP=${B}/$target/$d/ install |
44 | done | 44 | done |
45 | rm -rf ${D}${infodir}/libgomp.info ${D}${infodir}/dir | 45 | rm -rf ${D}${infodir}/libgomp.info ${D}${infodir}/dir |
46 | rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude | 46 | if [ -d ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude ]; then |
47 | rmdir --ignore-fail-on-non-empty -p ${D}${infodir} | 47 | rmdir --ignore-fail-on-non-empty -p ${D}${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude |
48 | fi | ||
49 | if [ -d ${D}${infodir} ]; then | ||
50 | rmdir --ignore-fail-on-non-empty -p ${D}${infodir} | ||
51 | fi | ||
48 | chown -R root:root ${D} | 52 | chown -R root:root ${D} |
49 | } | 53 | } |
50 | 54 | ||