summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2011-03-31 21:00:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-28 10:44:40 +0100
commit1ac90a3ba99bc56ff9aa52d32ab739fad8fd4ae3 (patch)
tree5bd5c2b2c0f07b7fbb67c0d9292cb74eeada036d
parente45f2254a0c9a1c0a1dedd2055dfaf22b640e40a (diff)
downloadpoky-1ac90a3ba99bc56ff9aa52d32ab739fad8fd4ae3.tar.gz
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>
-rw-r--r--meta/recipes-support/attr/attr.inc4
-rw-r--r--meta/recipes-support/attr/ea-acl.inc4
2 files changed, 5 insertions, 3 deletions
diff --git a/meta/recipes-support/attr/attr.inc b/meta/recipes-support/attr/attr.inc
index c11034069c..b2ed9a1b7d 100644
--- a/meta/recipes-support/attr/attr.inc
+++ b/meta/recipes-support/attr/attr.inc
@@ -20,3 +20,7 @@ do_install_append() {
20 sed -i ${D}${libdir}/libattr.la -e \ 20 sed -i ${D}${libdir}/libattr.la -e \
21 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', 21 s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\',
22} 22}
23
24# Only append ldflags for target recipe
25LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"
26
diff --git a/meta/recipes-support/attr/ea-acl.inc b/meta/recipes-support/attr/ea-acl.inc
index bc93107ac0..a09c31c0d1 100644
--- a/meta/recipes-support/attr/ea-acl.inc
+++ b/meta/recipes-support/attr/ea-acl.inc
@@ -1,11 +1,9 @@
1# this build system is mostly shared by attr and acl 1# this build system is mostly shared by attr and acl
2 2
3DEPENDS =+ "gettext"
4
5SRC_URI += "file://relative-libdir.patch;striplevel=0 \ 3SRC_URI += "file://relative-libdir.patch;striplevel=0 \
6 file://no-fixed-prog-path.patch" 4 file://no-fixed-prog-path.patch"
7 5
8inherit autotools 6inherit autotools gettext
9 7
10# the package comes with a custom config.h.in, it cannot be 8# the package comes with a custom config.h.in, it cannot be
11# overwritten by autoheader 9# overwritten by autoheader