]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
libgcc: Fix standalone target builds with usrmerge distro feature
authorKhem Raj <raj.khem@gmail.com>
Sun, 24 Jul 2022 15:35:45 +0000 (08:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2022 21:57:54 +0000 (22:57 +0100)
Ignore the rmdir cmd if using usrmerge distro feature since the
intention is to delete /lib or /lib64 but not libdir under /usr and
base_libdir = libdir when usrmerge is enabled in distro

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/libgcc-common.inc

index fbeb43d7186a51b7db294b4acbcb1992ee71e69e..cf8d6b7ed6e4ef5d1a1d9ec6ad90bdcd81bb5fc3 100644 (file)
@@ -45,10 +45,14 @@ do_install () {
 }
 
 do_install:append:libc-baremetal () {
-       rmdir ${D}${base_libdir}
+       if [ "${base_libdir}" != "${libdir}" ]; then
+               rmdir ${D}${base_libdir}
+       fi
 }
 do_install:append:libc-newlib () {
-       rmdir ${D}${base_libdir}
+       if [ "${base_libdir}" != "${libdir}" ]; then
+               rmdir ${D}${base_libdir}
+       fi
 }
 
 # No rpm package is actually created but -dev depends on it, avoid dnf error