From acc025bb6748ebb34020c21a04176b41e6a3dcbd Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 1 Jul 2011 21:05:25 +0200 Subject: 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 --- recipes/htop/htop_0.9.bb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/htop/htop_0.9.bb b/recipes/htop/htop_0.9.bb index eb207aabe6..089cb17d79 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" -- cgit 1.2.3-korg