[oe-commits] Tom Rini : apmd: Switch to getting libtool from PATH

git version control git at git.openembedded.org
Mon Sep 13 16:01:01 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 3f7a74fd62188bd06797a2397d51a69f67933549
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=3f7a74fd62188bd06797a2397d51a69f67933549

Author: Tom Rini <tom_rini at mentor.com>
Date:   Thu Sep  9 12:45:41 2010 -0700

apmd: Switch to getting libtool from PATH

While doing this, also ensure CC/CFLAGS/LDFLAGS are also obeyed.

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/apmd/apmd_3.2.2.bb |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/recipes/apmd/apmd_3.2.2.bb b/recipes/apmd/apmd_3.2.2.bb
index 6b83132..ec85d88 100644
--- a/recipes/apmd/apmd_3.2.2.bb
+++ b/recipes/apmd/apmd_3.2.2.bb
@@ -3,7 +3,7 @@ SECTION = "base"
 PRIORITY = "required"
 DEPENDS = "libtool-cross"
 LICENSE = "GPL"
-PR = "r12"
+PR = "r13"
 
 SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \
            file://debian.patch \
@@ -23,8 +23,12 @@ inherit update-rc.d
 INITSCRIPT_NAME = "apmd"
 INITSCRIPT_PARAMS = "defaults"
 
+LIBTOOL = "${HOST_SYS}-libtool"
+EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}' 'CC=${CC}' 'CFLAGS=${CFLAGS}' \
+                'LDFLAGS=${LDFLAGS}'"
+
 do_compile() {
-	oe_runmake "LIBTOOL=${STAGING_BINDIR_NATIVE}/${TARGET_PREFIX}libtool" apm apmd
+	oe_runmake apm apmd
 }
 
 do_install() {





More information about the Openembedded-commits mailing list