aboutsummaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2010-07-08 13:22:12 -0700
committerKhem Raj <raj.khem@gmail.com>2010-07-08 17:23:57 -0700
commit2b886cb404f8985b8ad08fa8d6763442b2ce27ac (patch)
tree0b5438c786afefef0be35194e259e2054ec77c7b /recipes
parent30223cff6e5cf7365da2c4430773310c0fe6bc26 (diff)
downloadopenembedded-2b886cb404f8985b8ad08fa8d6763442b2ce27ac.tar.gz
attr_2.4.44.bb: Specify PLATFORM otherwise it uses uname.
* Using uname to get OS name may not work on non linux build systems. * Cater for largefile feature which is knob'able in uclibc Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/udev/attr_2.4.44.bb11
1 files changed, 8 insertions, 3 deletions
diff --git a/recipes/udev/attr_2.4.44.bb b/recipes/udev/attr_2.4.44.bb
index c2054d18a8..ffc0cc3c56 100644
--- a/recipes/udev/attr_2.4.44.bb
+++ b/recipes/udev/attr_2.4.44.bb
@@ -1,16 +1,17 @@
DESCRIPTION = "Commands for Manipulating Filesystem Extended Attributes"
LICENSE = "GPLv2"
-PR = "r3"
+PR = "r4"
SRC_URI = "http://mirror.its.uidaho.edu/pub/savannah/attr/attr-${PV}.src.tar.gz"
inherit gettext autotools lib_package
-
EXTRA_OECONF = " --enable-gettext=yes \
ac_cv_path_XGETTEXT=${STAGING_BINDIR_NATIVE}/xgettext \
ac_cv_path_MSGFMT=${STAGING_BINDIR_NATIVE}/msgfmt \
- ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge "
+ ac_cv_path_MSGMERGE=${STAGING_BINDIR_NATIVE}/msgmerge \
+ PLATFORM="linux" \
+ "
LDFLAGS_append_libc-uclibc += " -lintl"
@@ -21,6 +22,10 @@ do_configure_append() {
echo "#define _(str) str" >> ${S}/include/config.h
}
+do_configure_prepend_libc-uclibc() {
+ eval "${@base_contains('DISTRO_FEATURES', 'largefile', '', 'sed -i -e "s/-D_FILE_OFFSET_BITS=64//" ${S}/include/builddefs.in', d)}"
+}
+
do_install() {
export PKG_BIN_DIR=${D}${bindir}
export PKG_SBIN_DIR=${D}${sbindir}