From 12cd34f3ad4fe3d0fd15d0c1dafe9d01c1bfa64c Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Fri, 10 Feb 2012 13:57:59 +0000 Subject: [PATCH] 2012-02-10 Pedro Alves * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of the test CFLAGS. * configure: Regenerate. --- gdb/ChangeLog | 6 ++++++ gdb/configure | 5 ++++- gdb/configure.ac | 5 ++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff74c510abd..9cf37d566a2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2012-02-10 Pedro Alves + + * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of + the test CFLAGS. + * configure: Regenerate. + 2012-02-10 Jan Kratochvil * linespec.c (decode_line_internal): Fix comment correctness. diff --git a/gdb/configure b/gdb/configure index 11c044caad4..2566410c10c 100755 --- a/gdb/configure +++ b/gdb/configure @@ -15320,7 +15320,10 @@ esac OLD_CFLAGS=$CFLAGS OLD_LDFLAGS=$LDFLAGS OLD_LIBS=$LIBS -CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" +# Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS +# points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We +# always want our bfd. +CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` # -ldl is provided by bfd/Makfile.am (LIBDL) . diff --git a/gdb/configure.ac b/gdb/configure.ac index 36da4630811..1b11adb066b 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1908,7 +1908,10 @@ AC_SUBST(WIN32LIBS) OLD_CFLAGS=$CFLAGS OLD_LDFLAGS=$LDFLAGS OLD_LIBS=$LIBS -CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd" +# Put the old CFLAGS/LDFLAGS last, in case the user's (C|LD)FLAGS +# points somewhere with bfd, with -I/foo/lib and -L/foo/lib. We +# always want our bfd. +CFLAGS="-I${srcdir}/../include -I../bfd -I${srcdir}/../bfd $CFLAGS" LDFLAGS="-L../bfd -L../libiberty $LDFLAGS" intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` # -ldl is provided by bfd/Makfile.am (LIBDL) . -- 2.30.2