aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2011-07-01 21:05:25 +0200
committerPaul Menzel <paulepanter@users.sourceforge.net>2011-07-02 17:49:11 +0200
commitacc025bb6748ebb34020c21a04176b41e6a3dcbd (patch)
tree7d361d426944965d6663ffc756880047caa1eb48
parent52f5e934535672bdf269743a6d5e05e2e1e8c0d3 (diff)
downloadopenembedded-acc025bb6748ebb34020c21a04176b41e6a3dcbd.zip
openembedded-acc025bb6748ebb34020c21a04176b41e6a3dcbd.tar.gz
openembedded-acc025bb6748ebb34020c21a04176b41e6a3dcbd.tar.bz2
htop: Link with libubacktrace when compiling for uClibc
Using `minimal-uclibc` for `MACHINE = "beagleboard"` task compile fails with the following error. htop-CRT.o: In function `CRT_handleSIGSEGV': /oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/htop-0.9-r0/htop-0.9/CRT.c:131: undefined reference to `backtrace' /oe/build-minimal-uclibc/minimal-uclibc-dev/work/armv7a-oe-linux-uclibceabi/htop-0.9-r0/htop-0.9/CRT.c:133: undefined reference to `backtrace_symbols_fd' Backtrace support in uClibc was enabled in commit 2a1c9e1e [1] so appending `-lubacktrace` to `LDFLAGS` fixes this problem. This patch is ported from the meta-openembedded patch committed from Khem Raj in commit 7e3451f4 [2]. PR was not increased, because it did not compile before with uClibc and the package content does not change. [1] http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=2a1c9e1ee5eb8067592d26100b563dd2ae7be00d [2] http://cgit.openembedded.org/cgit.cgi/meta-openembedded/commit/?id=7e3451f4e7352cc2c48711170e6a1be7c15e973e Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--recipes/htop/htop_0.9.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes/htop/htop_0.9.bb b/recipes/htop/htop_0.9.bb
index eb207aa..089cb17 100644
--- a/recipes/htop/htop_0.9.bb
+++ b/recipes/htop/htop_0.9.bb
@@ -14,6 +14,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/htop/htop-${PV}.tar.gz \
inherit autotools
+LDFLAGS_append_libc-uclibc = " -lubacktrace"
+
SRC_URI[md5sum] = "7c5507f35f363f3f40183a2ba3c561f8"
SRC_URI[sha256sum] = "4de65c38e1886bccd30ed692b30eb9bf195240680781bfe1eaf5faf84ee6fbfd"