]> code.ossystems Code Review - openembedded-core.git/commitdiff
attr: Fix uclibc builds
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 6 May 2014 12:50:55 +0000 (12:50 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 8 May 2014 12:11:47 +0000 (13:11 +0100)
attr needs libintl headers and libs. Add in the missing dependency and
ensure the linker flag gets passed in multilib builds by replacing the
PN == BPN check with a class-target override instead.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/attr/attr.inc
meta/recipes-support/attr/ea-acl.inc

index 873c1fffd9468bceea05eafffad53b5e850b669a..01ad59cb960e4afdbd50ebc003b7f98b5c87944f 100644 (file)
@@ -2,7 +2,7 @@ SUMMARY = "Utilities for manipulating filesystem extended attributes"
 HOMEPAGE = "http://savannah.nongnu.org/projects/attr/"
 SECTION = "libs"
 
-DEPENDS = "ncurses"
+DEPENDS = "ncurses virtual/libintl"
 
 LICENSE = "LGPLv2.1+ & GPLv2+"
 LICENSE_${PN} = "GPLv2+"
index 785ce0cf5029846362f0e9c92de8f9e30a68dbc8..72f623e5935bd94fd5ca6c003c4493a03d895fd4 100644 (file)
@@ -34,8 +34,8 @@ FILES_lib${BPN}-doc = "${mandir}/man2 \
 
 BBCLASSEXTEND = "native"
 # Only append ldflags for target recipe and if USE_NLS is enabled
-LDFLAGS_append_libc-uclibc = "${@['', ' -lintl '][(d.getVar('PN', True) == d.getVar('BPN', True)) and (d.getVar('USE_NLS', True) == 'yes')]}"
-EXTRA_OECONF_append_libc-uclibc = "${@['', ' --disable-gettext '][(d.getVar('PN', True) == d.getVar('BPN', True)) and (d.getVar('USE_NLS', True) == 'no')]}"
+LDFLAGS_append_libc-uclibc_class-target = "${@['', ' -lintl '][(d.getVar('USE_NLS', True) == 'yes')]}"
+EXTRA_OECONF_append_libc-uclibc_class-target = "${@['', ' --disable-gettext '][(d.getVar('USE_NLS', True) == 'no')]}"
 
 fix_symlink () {
        if test "${libdir}" = "${base_libdir}" ; then