attr: Fix compilation on uclibc

It needs -lintl added to LDFLAGS for uclibc

inherit gettext class instead of adding gettext to DEPENDS directly

(From OE-Core rev: 53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2011-03-31 21:00:44 -07:00
committed by Richard Purdie
parent e45f2254a0
commit 1ac90a3ba9
2 changed files with 5 additions and 3 deletions

View File

@@ -20,3 +20,7 @@ do_install_append() {
sed -i ${D}${libdir}/libattr.la -e \
s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
}
# Only append ldflags for target recipe
LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"

View File

@@ -1,11 +1,9 @@
# this build system is mostly shared by attr and acl
DEPENDS =+ "gettext"
SRC_URI += "file://relative-libdir.patch;striplevel=0 \
file://no-fixed-prog-path.patch"
inherit autotools
inherit autotools gettext
# the package comes with a custom config.h.in, it cannot be
# overwritten by autoheader