This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/6.7] Fix ELF support on hosts without built-in libintl
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Cc: Bhushan Attarde <Bhushan dot Attarde at kpitcummins dot com>
- Date: Sat, 29 Sep 2007 16:56:06 -0400
- Subject: [commit/6.7] Fix ELF support on hosts without built-in libintl
I've checked this in to trunk and branch to fix the problem Bhushan
Attarde reported with building a Cygwin-hosted cross GDB to an ELF
target.
--
Daniel Jacobowitz
CodeSourcery
2007-09-29 Daniel Jacobowitz <dan@codesourcery.com>
* configure.ac: Add $LIBINTL when testing libbfd.
* configure: Regenerated.
Index: configure
===================================================================
RCS file: /cvs/src/src/gdb/configure,v
retrieving revision 1.230
diff -u -p -r1.230 configure
--- configure 19 Sep 2007 22:00:33 -0000 1.230
+++ configure 29 Sep 2007 20:53:01 -0000
@@ -21913,7 +21913,7 @@ OLD_LDFLAGS=$LDFLAGS
OLD_LIBS=$LIBS
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
-LIBS="$LIBS -lbfd -liberty"
+LIBS="$LIBS -lbfd -liberty $LIBINTL"
echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
if test "${gdb_cv_var_elf+set}" = set; then
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.52
diff -u -p -r1.52 configure.ac
--- configure.ac 19 Sep 2007 22:00:32 -0000 1.52
+++ configure.ac 29 Sep 2007 20:53:01 -0000
@@ -1301,7 +1301,7 @@ OLD_LDFLAGS=$LDFLAGS
OLD_LIBS=$LIBS
CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
-LIBS="$LIBS -lbfd -liberty"
+LIBS="$LIBS -lbfd -liberty $LIBINTL"
AC_CACHE_CHECK([for ELF support in BFD], gdb_cv_var_elf,
[AC_TRY_LINK(
[#include <stdlib.h>