Patch for GNU/kFreeBSD

Message ID 20160513205750.GA23358@ubuntubsd.org
State New, archived
Headers

Commit Message

Jon Boden May 13, 2016, 8:57 p.m. UTC
  Hi

GDB 7.11 needs a tiny fix to build on GNU/kFreeBSD systems. Please can you apply this?

Thanks!
  

Comments

Yao Qi May 16, 2016, 1:08 p.m. UTC | #1
Jon Boden <jon@ubuntubsd.org> writes:

> GDB 7.11 needs a tiny fix to build on GNU/kFreeBSD systems. Please can
> you apply this?

Hi,
Thanks for the patch.  Could you describe what is the build problem
without your patch?  You also need to regenerate configure file, and
include the changes in the patch too.  ChangeLog is needed as well.

Please read https://sourceware.org/gdb/wiki/ContributionChecklist
  

Patch

--- gdb-7.11.orig/gdb/configure.ac
+++ gdb-7.11/gdb/configure.ac
@@ -535,7 +535,7 @@  AC_SEARCH_LIBS(socketpair, socket)
 AM_ZLIB
 
 # On FreeBSD we may need libutil for kinfo_getvmmap (used by fbsd-nat.c).
-AC_SEARCH_LIBS(kinfo_getvmmap, util,
+AC_SEARCH_LIBS(kinfo_getvmmap, util util-freebsd,
   [AC_DEFINE(HAVE_KINFO_GETVMMAP, 1,
             [Define to 1 if your system has the kinfo_getvmmap function. ])])