diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-07-18 15:52:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-07-20 15:27:38 +0100 |
commit | 59da55b9f1103980c9c38b9de6c928eb41d939cd (patch) | |
tree | 16f56cfe3f4241db6e40f31ee9567aa84a296e6a /meta | |
parent | 08bfdf909a9d5843b63ceb3b2851d41541e69343 (diff) | |
download | poky-59da55b9f1103980c9c38b9de6c928eb41d939cd.tar.gz |
powertop: Add lintl to linker commandline on uclibc
intl support is not inbuilt into libc like glibc
so we have to link it explicitly
(From OE-Core rev: 2c0dab3fc508b4b80a61b8ce0f6292ba66ad86d3)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/powertop/powertop_1.13.bb | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-kernel/powertop/powertop_1.13.bb b/meta/recipes-kernel/powertop/powertop_1.13.bb index 472a2bbcff..b08f65c684 100644 --- a/meta/recipes-kernel/powertop/powertop_1.13.bb +++ b/meta/recipes-kernel/powertop/powertop_1.13.bb | |||
@@ -11,16 +11,19 @@ DEPENDS = "virtual/libintl ncurses" | |||
11 | # powertop 1.13 needs lspci | 11 | # powertop 1.13 needs lspci |
12 | RDEPENDS_${PN} = "pciutils" | 12 | RDEPENDS_${PN} = "pciutils" |
13 | 13 | ||
14 | PR = "r1" | 14 | PR = "r2" |
15 | 15 | ||
16 | SRC_URI = "http://www.lesswatts.org/projects/powertop/download/powertop-${PV}.tar.gz \ | 16 | SRC_URI = "http://www.lesswatts.org/projects/powertop/download/powertop-${PV}.tar.gz \ |
17 | file://stub_out_the_ncurses_calls_in_dump_mode.patch" | 17 | file://stub_out_the_ncurses_calls_in_dump_mode.patch \ |
18 | " | ||
18 | 19 | ||
19 | SRC_URI[md5sum] = "78aa17c8f55178004223bf236654298e" | 20 | SRC_URI[md5sum] = "78aa17c8f55178004223bf236654298e" |
20 | SRC_URI[sha256sum] = "2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98" | 21 | SRC_URI[sha256sum] = "2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98" |
21 | 22 | ||
22 | CFLAGS += "${LDFLAGS}" | 23 | CFLAGS += "${LDFLAGS}" |
23 | EXTRA_OEMAKE = "VERSION=\"${PV}\"" | 24 | EXTRA_OEMAKE = "VERSION=\"${PV}\" EXTRA_LIBS=${EXTRA_LIBS}" |
25 | |||
26 | EXTRA_LIBS_libc-uclibc = "-lintl" | ||
24 | 27 | ||
25 | inherit update-alternatives | 28 | inherit update-alternatives |
26 | ALTERNATIVE_NAME = "powertop" | 29 | ALTERNATIVE_NAME = "powertop" |
@@ -30,7 +33,7 @@ ALTERNATIVE_PRIORITY = "100" | |||
30 | 33 | ||
31 | do_configure() { | 34 | do_configure() { |
32 | # We do not build ncurses with wide char support | 35 | # We do not build ncurses with wide char support |
33 | sed -i -e "s/lncursesw/lncurses/" ${S}/Makefile | 36 | sed -i -e 's:lncursesw:lncurses ${EXTRA_LIBS}:g' ${S}/Makefile |
34 | } | 37 | } |
35 | 38 | ||
36 | do_install() { | 39 | do_install() { |