]> code.ossystems Code Review - openembedded-core.git/commitdiff
attr: Fix compilation on uclibc
authorKhem Raj <raj.khem@gmail.com>
Fri, 1 Apr 2011 04:00:44 +0000 (21:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Apr 2011 08:52:27 +0000 (09:52 +0100)
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>
meta/recipes-support/attr/attr.inc
meta/recipes-support/attr/ea-acl.inc

index c11034069c8faffafe934274f607e0123867d622..b2ed9a1b7d9609118161e284a459aa02be6bea51 100644 (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}']}"
+
index bc93107ac007ef20b7765b0457372c1023e51ca0..a09c31c0d131d2da55533a274fc81bcbf9871863 100644 (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