glibc: fix libdir/libexecdir path confusion

$libdir/glibc is deleted if it doesn't exist but this is incorrectly assuming
what variables are used to create this directory.  In fact libexecdir is being
used in the Makefile so use that in the recipe too.

This fixes builds where libexecdir is changed.

(From OE-Core rev: 0c73dcb7c1c369a66e4c5804fcdd19f657426a5d)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton authored and Richard Purdie committed 2015-12-08 10:20:50 +00:00
1 parent d0577f9960
commit cbfccc6394
1 file changed
+3 -2
+3 -2
View File
@@ -82,9 +82,10 @@ do_install_append () {
rm -rf ${D}${localstatedir}
# remove empty glibc dir
if [ -d ${D}${libdir}/glibc -a ! -e ${D}${libdir}/glibc/pt_chown ]; then
rmdir ${D}${libdir}/glibc
if [ -d ${D}${libexecdir} ]; then
rmdir --ignore-fail-on-non-empty ${D}${libexecdir}
fi
oe_multilib_header bits/syscall.h
if [ -f ${D}${bindir}/mtrace ]; then