summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/gdb-6.6/generic/Makefile_in_cppflags.diff51
-rw-r--r--patches/gdb-6.6/generic/Makefile_in_ldflags.diff53
-rw-r--r--patches/gdb-6.6/generic/series2
-rw-r--r--rules/gdb.make2
4 files changed, 107 insertions, 1 deletions
diff --git a/patches/gdb-6.6/generic/Makefile_in_cppflags.diff b/patches/gdb-6.6/generic/Makefile_in_cppflags.diff
new file mode 100644
index 000000000..53c06ce1e
--- /dev/null
+++ b/patches/gdb-6.6/generic/Makefile_in_cppflags.diff
@@ -0,0 +1,51 @@
+#
+# Submitted-By: Marc Kleine-Budde, 2006-03-20
+# Committed-By: Marc Kleine-Budde
+#
+# Error:
+#
+# checking for arm-softfloat-linux-gnu-dlltool... arm-softfloat-linux-gnu-dlltool
+# checking for arm-softfloat-linux-gnu-windres... arm-softfloat-linux-gnu-windres
+# checking for arm-softfloat-linux-gnu-mig... no
+# checking for mig... no
+# checking for main in -lm... yes
+# checking for wctype... yes
+# checking for library containing gethostbyname... none required
+# checking for library containing socketpair... none required
+# checking for library containing waddstr... no
+# checking for library containing tgetent... no
+# configure: error: no termcap library found
+# make[2]: *** [configure-gdb] Error 1
+#
+# Description:
+#
+# gdb forgets the {LD,CPP}FLAGS_FOR_TARGET
+#
+# State:
+#
+# unknown
+#
+---
+# Makefile.in | 2 ++
+# 1 file changed, 2 insertions(+)
+#
+Index: Makefile.in
+===================================================================
+--- Makefile.in.orig
++++ Makefile.in
+@@ -141,6 +141,7 @@ HOST_EXPORTS = \
+ CC="$(CC)"; export CC; \
+ CFLAGS="$(CFLAGS)"; export CFLAGS; \
+ CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
++ CPPFLAGS="$(CPPFLAGS)"; export CPPFLAGS; \
+ CXX="$(CXX)"; export CXX; \
+ CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
+ AR="$(AR)"; export AR; \
+@@ -290,6 +291,7 @@ WINDRES = @WINDRES@
+ CFLAGS = @CFLAGS@
+ LDFLAGS =
+ LIBCFLAGS = $(CFLAGS)
++CPPFLAGS = @CPPFLAGS@
+ CXXFLAGS = @CXXFLAGS@
+ LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
+ PICFLAG =
diff --git a/patches/gdb-6.6/generic/Makefile_in_ldflags.diff b/patches/gdb-6.6/generic/Makefile_in_ldflags.diff
new file mode 100644
index 000000000..115055df0
--- /dev/null
+++ b/patches/gdb-6.6/generic/Makefile_in_ldflags.diff
@@ -0,0 +1,53 @@
+#
+# Submitted-By: Marc Kleine-Budde, 2006-03-20
+# Committed-By: Marc Kleine-Budde
+#
+# Error:
+#
+# checking for arm-softfloat-linux-gnu-dlltool... arm-softfloat-linux-gnu-dlltool
+# checking for arm-softfloat-linux-gnu-windres... arm-softfloat-linux-gnu-windres
+# checking for arm-softfloat-linux-gnu-mig... no
+# checking for mig... no
+# checking for main in -lm... yes
+# checking for wctype... yes
+# checking for library containing gethostbyname... none required
+# checking for library containing socketpair... none required
+# checking for library containing waddstr... no
+# checking for library containing tgetent... no
+# configure: error: no termcap library found
+# make[2]: *** [configure-gdb] Error 1
+#
+# Description:
+#
+# gdb forgets the {LD,CPP}FLAGS_FOR_TARGET
+#
+# State:
+#
+# unknown
+#
+---
+# Makefile.in | 4 ++--
+# 1 file changed, 2 insertions(+), 2 deletions(-)
+#
+Index: Makefile.in
+===================================================================
+--- Makefile.in.orig
++++ Makefile.in
+@@ -289,7 +289,7 @@ STRIP = @STRIP@
+ WINDRES = @WINDRES@
+
+ CFLAGS = @CFLAGS@
+-LDFLAGS =
++LDFLAGS = @LDFLAGS@
+ LIBCFLAGS = $(CFLAGS)
+ CPPFLAGS = @CPPFLAGS@
+ CXXFLAGS = @CXXFLAGS@
+@@ -338,7 +338,7 @@ SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFL
+ CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
+ LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
+ LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
+-LDFLAGS_FOR_TARGET =
++LDFLAGS_FOR_TARGET = @LDFLAGS_FOR_TARGET@
+ PICFLAG_FOR_TARGET =
+
+ # ------------------------------------
diff --git a/patches/gdb-6.6/generic/series b/patches/gdb-6.6/generic/series
new file mode 100644
index 000000000..a16f790a3
--- /dev/null
+++ b/patches/gdb-6.6/generic/series
@@ -0,0 +1,2 @@
+Makefile_in_cppflags.diff -p0
+Makefile_in_ldflags.diff -p0
diff --git a/rules/gdb.make b/rules/gdb.make
index 8ec752408..e01a4fe4c 100644
--- a/rules/gdb.make
+++ b/rules/gdb.make
@@ -18,7 +18,7 @@ PACKAGES-$(PTXCONF_GDB) += gdb
#
# Paths and names
#
-GDB_VERSION = 6.4
+GDB_VERSION = 6.6
GDB = gdb-$(GDB_VERSION)
GDB_SUFFIX = tar.bz2
GDB_URL = $(PTXCONF_SETUP_GNUMIRROR)/gdb/$(GDB).$(GDB_SUFFIX)