Skip to content

Commit

Permalink
apmd: Switch to getting libtool from PATH
Browse files Browse the repository at this point in the history
While doing this, also ensure CC/CFLAGS/LDFLAGS are also obeyed.

Signed-off-by: Tom Rini <tom_rini@mentor.com>
  • Loading branch information
Tom Rini committed Sep 13, 2010
1 parent d0dece3 commit 3f7a74f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/apmd/apmd_3.2.2.bb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ SECTION = "base"
PRIORITY = "required" PRIORITY = "required"
DEPENDS = "libtool-cross" DEPENDS = "libtool-cross"
LICENSE = "GPL" LICENSE = "GPL"
PR = "r12" PR = "r13"


SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \ SRC_URI = "${DEBIAN_MIRROR}/main/a/apmd/apmd_${PV}.orig.tar.gz \
file://debian.patch \ file://debian.patch \
Expand All @@ -23,8 +23,12 @@ inherit update-rc.d
INITSCRIPT_NAME = "apmd" INITSCRIPT_NAME = "apmd"
INITSCRIPT_PARAMS = "defaults" INITSCRIPT_PARAMS = "defaults"


LIBTOOL = "${HOST_SYS}-libtool"
EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}' 'CC=${CC}' 'CFLAGS=${CFLAGS}' \
'LDFLAGS=${LDFLAGS}'"

do_compile() { do_compile() {
oe_runmake "LIBTOOL=${STAGING_BINDIR_NATIVE}/${TARGET_PREFIX}libtool" apm apmd oe_runmake apm apmd
} }


do_install() { do_install() {
Expand Down

0 comments on commit 3f7a74f

Please sign in to comment.