[oe-commits] Eric Bénard : gdb-cross-sdk: use static libncurses libtinfo libz and libexpat

git version control git at git.openembedded.org
Thu Sep 23 08:25:28 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: f162295fb23a10e32b5126e9193fa7b5aaf01aba
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=f162295fb23a10e32b5126e9193fa7b5aaf01aba

Author: Eric Bénard <eric at eukrea.com>
Date:   Thu Sep 23 00:27:18 2010 +0200

gdb-cross-sdk: use static libncurses libtinfo libz and libexpat

* statically linking these libs prevents several runtime problems

Signed-off-by: Eric Bénard <eric at eukrea.com>
Acked-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/gdb/gdb-cross-sdk.inc |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
index 7c85653..fbff553 100644
--- a/recipes/gdb/gdb-cross-sdk.inc
+++ b/recipes/gdb/gdb-cross-sdk.inc
@@ -1,8 +1,19 @@
 require gdb-cross.inc
 LICENSE = "GPLv3"
 
-INC_PR = "r6"
+INC_PR = "r7"
 
 inherit sdk
 
 DEPENDS = "ncurses-sdk zlib-sdk flex-native"
+EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
+
+do_configure_append () {
+	cd ${B}
+	oe_runmake configure-host
+	sed -e 's,-lncurses,${STAGING_LIBDIR_NATIVE}/libncurses.a ${STAGING_LIBDIR_NATIVE}/libtinfo.a ,g' -i ${B}/gdb/Makefile
+	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/gdb/Makefile
+	sed -e 's,-lexpat, ${STAGING_LIBDIR_NATIVE}/libexpat.a ,g' -i ${B}/gdb/Makefile
+	sed -e 's,libexpat.so,libexpat.a ,g' -i ${B}/gdb/Makefile
+	sed -e 's,-lz, ${STAGING_LIBDIR_NATIVE}/libz.a ,g' -i ${B}/sim/arm/Makefile
+}
\ No newline at end of file





More information about the Openembedded-commits mailing list