[oe-commits] Paul Menzel : htop: Link with libubacktrace when compiling for uClibc

git version control git at git.openembedded.org
Sat Jul 2 15:51:03 UTC 2011


Module: openembedded.git
Branch: master
Commit: acc025bb6748ebb34020c21a04176b41e6a3dcbd
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=acc025bb6748ebb34020c21a04176b41e6a3dcbd

Author: Paul Menzel <paulepanter at users.sourceforge.net>
Date:   Fri Jul  1 21:05:25 2011 +0200

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 at users.sourceforge.net>

---

 recipes/htop/htop_0.9.bb |    2 ++
 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"
 





More information about the Openembedded-commits mailing list