aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/gdb/gdb-cross-sdk.inc
diff options
context:
space:
mode:
authorEric Bénard <eric@eukrea.com>2010-09-23 00:27:18 +0200
committerEric Bénard <eric@eukrea.com>2010-09-23 10:23:34 +0200
commitf162295fb23a10e32b5126e9193fa7b5aaf01aba (patch)
treed281aae47d99e722365620b2f1be06e6d67e6aac /recipes/gdb/gdb-cross-sdk.inc
parent3b175b3421122c55d3acb1922d80b2caf15c9ccb (diff)
downloadopenembedded-f162295fb23a10e32b5126e9193fa7b5aaf01aba.tar.gz
openembedded-f162295fb23a10e32b5126e9193fa7b5aaf01aba.tar.bz2
openembedded-f162295fb23a10e32b5126e9193fa7b5aaf01aba.zip
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@eukrea.com> Acked-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/gdb/gdb-cross-sdk.inc')
-rw-r--r--recipes/gdb/gdb-cross-sdk.inc13
1 files changed, 12 insertions, 1 deletions
diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
index 7c856532ed..fbff553d29 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