wrong bfd recognized

Luca Pizzamiglio
2011-12-13T15:14:20Z

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

Hi!
I'm Luca, the maintainer of gdb7.x on FreeBSD ports.

I've found a strange situation where gdb's configure script fails to
use libbfd and disable ELF support.
the problem was that during configuration, the /usr/local/lib/libbfd.a
was used, instead of the gdb's one. This library was compiled with
libintl support, then the bfd's test program build failed.

This patch should solve this issue, building bfd's testing program
using the gdb's one.

Thanks in advance for the support

Luca

PS: please use my address in cc, I'm not in the mailing-list!

[-- Attachment #2: gdb-configure.ac.patch --]
[-- Type: application/octet-stream, Size: 479 bytes --]

--- gdb/configure.ac.orig 2011-12-13 15:33:27.616649109 +0100
+++ gdb/configure.ac 2011-12-13 15:34:08.559285673 +0100
@@ -1854,7 +1854,7 @@
OLD_LDFLAGS=$LDFLAGS
OLD_LIBS=$LIBS
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
-LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
+LDFLAGS="-L../bfd -L../libiberty $LDFLAGS"
intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
# -ldl is provided by bfd/Makfile.am (LIBDL) <PLUGINS>.
if test "$plugins" = "yes"; then