summaryrefslogtreecommitdiff
path: root/meta/recipes-support
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 09:52:27 +0100
commit53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c (patch)
tree4db8ebd577559430133fc8247f2f10acbfa87b07 /meta/recipes-support
parentee1be44976fcb8d584fee5f5c30f4f95abec76ed (diff)
downloadopenembedded-core-53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c.tar.gz
openembedded-core-53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c.tar.bz2
openembedded-core-53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c.zip
attr: Fix compilation on uclibc
It needs -lintl added to LDFLAGS for uclibc inherit gettext class instead of adding gettext to DEPENDS directly Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta/recipes-support')
-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() {
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}']}"
+
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 @@
# 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