summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-12-14 10:48:34 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-12-14 10:48:34 (GMT)
commit575aae8190930c2bdf6ea3d15f38ece60af8370f (patch)
tree4ef6dad25298a789d5e9a95a657e01d295af3693
parent55cd94eebd69f82df3df45c9c96e17f173e19cf6 (diff)
parentc33b4e377ec97a2e43bc57e0558f72c1904cb913 (diff)
downloadmxe-575aae8190930c2bdf6ea3d15f38ece60af8370f.zip
mxe-575aae8190930c2bdf6ea3d15f38ece60af8370f.tar.gz
mxe-575aae8190930c2bdf6ea3d15f38ece60af8370f.tar.bz2
Merge pull request #98 from lsaavedr/gdb_fix_termcap
package gdb: remove internal termcap support
-rw-r--r--src/gdb-2-fix-termcap.patch24
-rw-r--r--src/gdb.mk2
2 files changed, 25 insertions, 1 deletions
diff --git a/src/gdb-2-fix-termcap.patch b/src/gdb-2-fix-termcap.patch
new file mode 100644
index 0000000..f597d5f
--- /dev/null
+++ b/src/gdb-2-fix-termcap.patch
@@ -0,0 +1,24 @@
+diff -ur gdb-7.5.1_old/gdb/windows-termcap.c gdb-7.5.1/gdb/windows-termcap.c
+--- gdb-7.5.1_old/gdb/windows-termcap.c 2012-12-13 13:28:37.527194089 -0300
++++ gdb-7.5.1/gdb/windows-termcap.c 2012-12-13 13:29:54.823190855 -0300
+@@ -18,7 +18,15 @@
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
++#include "config.h"
+
++#if defined (HAVE_NCURSES_TERM_H)
++#elif defined (HAVE_TERM_H)
++#else
++/* On MinGW, a real termcap library is usually not present. Stub versions
++ of the termcap functions will be built from windows-termcap.c. Readline
++ provides its own extern declarations when there's no termcap.h; do the
++ same here for the termcap functions used in GDB. */
+ #include <stdlib.h>
+
+ /* -Wmissing-prototypes */
+@@ -71,3 +79,4 @@
+ {
+ return NULL;
+ }
++#endif
diff --git a/src/gdb.mk b/src/gdb.mk
index a86da91..f787689 100644
--- a/src/gdb.mk
+++ b/src/gdb.mk
@@ -7,7 +7,7 @@ $(PKG)_SUBDIR := gdb-$($(PKG)_VERSION)
$(PKG)_FILE := gdb-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := ftp://ftp.gnu.org/pub/gnu/$(PKG)/$($(PKG)_FILE)
$(PKG)_URL_2 := ftp://ftp.cs.tu-berlin.de/pub/gnu/$(PKG)/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc expat libiconv zlib
+$(PKG)_DEPS := gcc expat libiconv ncurses zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://ftp.gnu.org/gnu/gdb/?C=M;O=D' | \