[oe-commits] Tom Rini : gdb-cross/cross-sdk: Fixup DEPENDS further

git version control git at git.openembedded.org
Wed Oct 13 23:10:45 UTC 2010


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

Author: Tom Rini <tom_rini at mentor.com>
Date:   Wed Oct 13 15:39:31 2010 -0700

gdb-cross/cross-sdk: Fixup DEPENDS further

Since we are statically linking, as noted before, we now share
the same DEPENDS set on cross and cross-sdk.  And gdb cannot
build without grabbing some stuff from the real compiler.
gdb-cross was fine but gdb-cross-sdk was relying previously on
an oddity of zlib.  To be clear, add in virtual/${TARGET_PREFIX}gcc
with a comment.

Signed-off-by: Tom Rini <tom_rini at mentor.com>

---

 recipes/gdb/gdb-cross-sdk.inc |    4 ++--
 recipes/gdb/gdb-cross.inc     |    4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/recipes/gdb/gdb-cross-sdk.inc b/recipes/gdb/gdb-cross-sdk.inc
index adc2ed3..1a9360d 100644
--- a/recipes/gdb/gdb-cross-sdk.inc
+++ b/recipes/gdb/gdb-cross-sdk.inc
@@ -2,11 +2,11 @@ require gdb-cross.inc
 LICENSE = "GPLv3"
 
 inherit sdk
-
-# Since we statically link these libraries, we don't dep on the -sdk version
 DEPENDS = "ncurses-native zlib-native expat-native flex-native"
 EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
 
+# Since we statically link against the required host libraries we don't 
+# add a depenency on the -sdk versions of them.
 do_configure () {
 	cd ${B}
 	oe_runmake configure-host
diff --git a/recipes/gdb/gdb-cross.inc b/recipes/gdb/gdb-cross.inc
index f92d798..9753e81 100644
--- a/recipes/gdb/gdb-cross.inc
+++ b/recipes/gdb/gdb-cross.inc
@@ -1,6 +1,8 @@
 require gdb-common.inc
 
-DEPENDS = "ncurses-native zlib-native flex-native"
+DEPENDS = "ncurses-native zlib-native expat-native flex-native"
+# We must have this around in order to link gdb
+DEPENDS += "virtual/${TARGET_PREFIX}gcc"
 
 EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils' LDFLAGS='${BUILD_LDFLAGS}'"
 





More information about the Openembedded-commits mailing list