summaryrefslogtreecommitdiff
path: root/devel/gdb/patches
diff options
context:
space:
mode:
authorsbd <sbd@pkgsrc.org>2011-12-05 22:15:05 +0000
committersbd <sbd@pkgsrc.org>2011-12-05 22:15:05 +0000
commitfe7bcfaea3aec444d9b860e2ae2cc7f402b74e40 (patch)
tree442c92adc7d9bc1d097d8261cfc2c6715a1602ee /devel/gdb/patches
parentb92f8cc0cf9d459b2bac664bb6f35cdd8b7d2d32 (diff)
downloadpkgsrc-fe7bcfaea3aec444d9b860e2ae2cc7f402b74e40.tar.gz
If <stdlib.h> is needed and its wrapped with HAVE_STDDLIB_H it must be
tested for by autoconf! <stdlib.h> is needed as it include <alloca.h> which is needed for alloca(3). Also fix DESTDIR support for gdbserver.
Diffstat (limited to 'devel/gdb/patches')
-rw-r--r--devel/gdb/patches/patch-gdb_gdbserver_Makefile.in15
-rw-r--r--devel/gdb/patches/patch-gdb_gdbserver_configure.in16
2 files changed, 31 insertions, 0 deletions
diff --git a/devel/gdb/patches/patch-gdb_gdbserver_Makefile.in b/devel/gdb/patches/patch-gdb_gdbserver_Makefile.in
new file mode 100644
index 00000000000..167d36aa784
--- /dev/null
+++ b/devel/gdb/patches/patch-gdb_gdbserver_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-gdb_gdbserver_Makefile.in,v 1.1 2011/12/05 22:15:05 sbd Exp $
+
+--- gdb/gdbserver/Makefile.in.orig 2002-08-20 21:32:18.000000000 +0000
++++ gdb/gdbserver/Makefile.in
+@@ -145,8 +145,8 @@ install: all install-only
+ install-only:
+ n=`echo gdbserver | sed '$(program_transform_name)'`; \
+ if [ x$$n = x ]; then n=gdbserver; else true; fi; \
+- $(INSTALL_PROGRAM) gdbserver $(bindir)/$$n; \
+- $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(man1dir)/$$n.1
++ $(INSTALL_PROGRAM) gdbserver $(DESTDIR)$(bindir)/$$n; \
++ $(INSTALL_DATA) $(srcdir)/gdbserver.1 $(DESTDIR)$(man1dir)/$$n.1
+
+ uninstall: force
+ n=`echo gdbserver | sed '$(program_transform_name)'`; \
diff --git a/devel/gdb/patches/patch-gdb_gdbserver_configure.in b/devel/gdb/patches/patch-gdb_gdbserver_configure.in
new file mode 100644
index 00000000000..deba95fa98b
--- /dev/null
+++ b/devel/gdb/patches/patch-gdb_gdbserver_configure.in
@@ -0,0 +1,16 @@
+$NetBSD: patch-gdb_gdbserver_configure.in,v 1.1 2011/12/05 22:15:05 sbd Exp $
+
+If <stdlib.h> is needed and its wrapped with HAVE_STDDLIB_H it must be
+tested for by autoconf!
+
+--- gdb/gdbserver/configure.in.orig 2002-07-24 21:30:46.000000000 +0000
++++ gdb/gdbserver/configure.in
+@@ -30,7 +30,7 @@ AC_PROG_INSTALL
+
+ AC_HEADER_STDC
+
+-AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl
++AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl stdlib.h
+ proc_service.h sys/procfs.h thread_db.h linux/elf.h unistd.h)
+
+ . ${srcdir}/configure.srv