diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2014-12-18 15:54:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-17 11:35:16 +0100 |
commit | 4ac156de840e64dabb0c1a4a197d0b117023c158 (patch) | |
tree | 4f1c3eeca03182b1a2ca2474e459723192c8b602 /meta/recipes-kernel | |
parent | 0143d3a6a9dc263f90b7e19a3f8d6b9a49831361 (diff) | |
download | poky-4ac156de840e64dabb0c1a4a197d0b117023c158.tar.gz |
powertop: Fix build for !uclibc
* EXTRA_LDFLAGS isn't defined for !uclibc and configure fails
when it reads it unexpanded, see config.log snippet:
configure:4177: checking whether the C compiler works
configure:4199: i586-oe-linux-gcc -m32 -march=i586 --sysroot=/OE/sysroots/qemux86 -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed ${EXTRA_LDFLAGS} conftest.c >&5
i586-oe-linux-gcc: error: ${EXTRA_LDFLAGS}: No such file or directory
configure:4203: $? = 1
configure:4241: result: no
(From OE-Core rev: c8f9b5c9a8e5179c2013f25decd6a5483df9c716)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/powertop/powertop_2.6.1.bb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-kernel/powertop/powertop_2.6.1.bb b/meta/recipes-kernel/powertop/powertop_2.6.1.bb index 58216c2d15..ddb510254a 100644 --- a/meta/recipes-kernel/powertop/powertop_2.6.1.bb +++ b/meta/recipes-kernel/powertop/powertop_2.6.1.bb | |||
@@ -14,8 +14,9 @@ SRC_URI[sha256sum] = "034cde6d5bb433fe0d29251d5cde5d4c2948abf05fe29ef10966b65933 | |||
14 | inherit autotools gettext pkgconfig | 14 | inherit autotools gettext pkgconfig |
15 | 15 | ||
16 | # we need to explicitly link with libintl in uClibc systems | 16 | # we need to explicitly link with libintl in uClibc systems |
17 | LDFLAGS += "${EXTRA_LDFLAGS}" | 17 | EXTRA_LDFLAGS ?= "" |
18 | EXTRA_LDFLAGS_libc-uclibc = "-lintl" | 18 | EXTRA_LDFLAGS_libc-uclibc = "-lintl" |
19 | LDFLAGS += "${EXTRA_LDFLAGS}" | ||
19 | 20 | ||
20 | # we do not want libncursesw if we can | 21 | # we do not want libncursesw if we can |
21 | do_configure_prepend() { | 22 | do_configure_prepend() { |