attr_2.4.44.bb: Dont add -lintl if doing native build and target is uclibc
authorKhem Raj <raj.khem@gmail.com>
Mon, 24 Jan 2011 03:24:14 +0000 (19:24 -0800)
committerKhem Raj <raj.khem@gmail.com>
Mon, 24 Jan 2011 03:25:46 +0000 (19:25 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/udev/attr_2.4.44.bb

index d42c5d8..00aafce 100644 (file)
@@ -13,7 +13,8 @@ EXTRA_OECONF = " --enable-gettext=yes \
                 PLATFORM="linux" \
                "
 
-LDFLAGS_append_libc-uclibc += " -lintl"
+# Only append ldflags for target recipe
+LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}"
 
 TOPDIR[unexport] = "1"