aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.ac
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-02-10 13:57:59 +0000
committerPedro Alves <palves@redhat.com>2012-02-10 13:57:59 +0000
commit12cd34f3ad4fe3d0fd15d0c1dafe9d01c1bfa64c (patch)
tree7f7f8ce47c54dee4b386e4fb6e288f28a94aa706 /gdb/configure.ac
parente871429d8d1e00b7d0e5cfdf4675efd7564f0afb (diff)
downloadgdb-12cd34f3ad4fe3d0fd15d0c1dafe9d01c1bfa64c.zip
gdb-12cd34f3ad4fe3d0fd15d0c1dafe9d01c1bfa64c.tar.gz
gdb-12cd34f3ad4fe3d0fd15d0c1dafe9d01c1bfa64c.tar.bz2
2012-02-10 Pedro Alves <palves@redhat.com>
* configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of the test CFLAGS. * configure: Regenerate.
Diffstat (limited to 'gdb/configure.ac')
-rw-r--r--gdb/configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/configure.ac b/gdb/configure.ac
index 36da463..1b11adb 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) <PLUGINS>.