diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-03-31 21:00:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-04-28 09:52:27 +0100 |
commit | 53f421bd2a7dc4caf8cbf4ea1b04cf00ea158b2c (patch) | |
tree | 4db8ebd577559430133fc8247f2f10acbfa87b07 /meta/recipes-support | |
parent | ee1be44976fcb8d584fee5f5c30f4f95abec76ed (diff) | |
download | openembedded-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.inc | 4 | ||||
-rw-r--r-- | meta/recipes-support/attr/ea-acl.inc | 4 |
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 |