Commit
e0c2dd275827a4b37b8116d0f0119333638461af broke building
eglibc 2.17, which still ships pt_chown under eglibc/ directory.
Fix by only deleting directory when pt_chown is not there.
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
rm -rf ${D}${localstatedir}
# remove empty eglibc dir
- if [ -d ${D}${libdir}/eglibc ]; then
+ if [ -d ${D}${libdir}/eglibc -a ! -e ${D}${libdir}/eglibc/pt_chown ]; then
rmdir ${D}${libdir}/eglibc
fi
oe_multilib_header bits/syscall.h