|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] gdbserver minor build fixes
gdb-6.2.1-xen-sparse/gdb/gdbserver/configure | 2 +-
gdb-6.2.1-xen-sparse/gdb/gdbserver/configure.in | 2 +-
gdbbuild | 16 ++++++++++++----
3 files changed, 14 insertions(+), 6 deletions(-)
More cleanups are possible, I'll send those at a later stage.
---
Use sh over csh. Don't assume we will have gmake. Use libraries
built in the current tree --- not the system wide ones as they may not
exists or worse might be older/incompatible.
Signed-of-by: Chris Wedgwood <cw@xxxxxxxx>
===== tools/gdb/gdbbuild 1.3 vs edited =====
--- 1.3/tools/gdb/gdbbuild 2005-04-18 16:20:06 -07:00
+++ edited/tools/gdb/gdbbuild 2005-04-19 00:08:38 -07:00
@@ -1,9 +1,12 @@
-#!/bin/csh -f
-setenv XENROOT `bk root`
+#!/bin/sh
+
+XENROOT=`bk root`
+export XENROOT
cd $XENROOT/tools/gdb
rm -rf gdb-6.2.1 gdb-6.2.1-linux-i386-xen
-wget ftp://ftp.gnu.org/gnu/gdb/gdb-6.2.1.tar.bz2
+# FIXME:cw this should be smarter
+wget -c ftp://ftp.gnu.org/gnu/gdb/gdb-6.2.1.tar.bz2
tar xjf gdb-6.2.1.tar.bz2
cd $XENROOT/tools/gdb/gdb-6.2.1-xen-sparse
@@ -12,4 +15,9 @@ cd $XENROOT/tools/gdb/gdb-6.2.1-xen-spar
mkdir $XENROOT/tools/gdb/gdb-6.2.1-linux-i386-xen
cd $XENROOT/tools/gdb/gdb-6.2.1-linux-i386-xen
../gdb-6.2.1/configure
-gmake -j4
+# some people don't have gmake
+if which gmake ; then
+ gmake -j4
+else
+ make -j4
+fi
===== tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure 1.2 vs edited =====
--- 1.2/tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure 2005-03-21
00:14:39 -08:00
+++ edited/tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure
2005-04-19 00:03:44 -07:00
@@ -3475,7 +3475,7 @@ USE_THREAD_DB=
GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
-GDBSERVER_LIBS="$srv_libs -lxc"
+GDBSERVER_LIBS="$srv_libs -L../../../../libxc/ -L../../../../libxutil/ -lxc
-lxutil"
===== tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure.in 1.1 vs edited
=====
--- 1.1/tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure.in
2005-03-19 18:31:24 -08:00
+++ edited/tools/gdb/gdb-6.2.1-xen-sparse/gdb/gdbserver/configure.in
2005-04-18 23:57:04 -07:00
@@ -107,7 +107,7 @@ USE_THREAD_DB=
GDBSERVER_DEPFILES="$srv_regobj $srv_tgtobj $srv_thread_depfiles"
-GDBSERVER_LIBS="$srv_libs -lxc"
+GDBSERVER_LIBS="$srv_libs -L../../../../libxc/ -L../../../../libxutil/ -lxc
-lxutil"
AC_SUBST(GDBSERVER_DEPFILES)
AC_SUBST(GDBSERVER_LIBS)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] gdbserver minor build fixes,
Chris Wedgwood <=
|
|
|
|
|