From 5a2d4533e2b9cc9c069d47071013cb30f1e0fc7e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Apr 2015 04:43:57 -0700 Subject: Replace $zlibdir with $ZLIBDIR in LDFLAGS * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir. Replace $zlibdir with $ZLIBDIR in LDFLAGS. * configure: Regenerated. --- gdb/acinclude.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/acinclude.m4') diff --git a/gdb/acinclude.m4 b/gdb/acinclude.m4 index 98ae85f..845e65f 100644 --- a/gdb/acinclude.m4 +++ b/gdb/acinclude.m4 @@ -465,7 +465,8 @@ AC_DEFUN([GDB_AC_CHECK_BFD], [ # 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 $zlibdir $LDFLAGS" + ZLIBDIR=`echo $zlibdir | sed 's,\$(top_builddir)/,,g'` + LDFLAGS="-L../bfd -L../libiberty $ZLIBDIR $LDFLAGS" intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'` LIBS="-lbfd -liberty -lz $intl $LIBS" AC_CACHE_CHECK([$1], [$2], -- cgit v1.1