gdb: Fix GDB_AC_CHECK_BFD macro regression
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 7 Mar 2023 14:21:50 +0000 (14:21 +0000)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 7 Mar 2023 16:12:14 +0000 (11:12 -0500)
commit5fc6b6d44cd63651c2902cbfc5b9734a55aaa617
tree4aa63b2d2420df48126311abc09a4885da4f6500
parent2eb2613519ae444493c301be1c37901c8a528c40
gdb: Fix GDB_AC_CHECK_BFD macro regression

Commit 5218fa9e8937b007d554f1e01c2e4ecdb9b7e271, "gdb: use libtool in
GDB_AC_CHECK_BFD" dropped passing in existing LDFLAGS. In our environment,
this caused the configure check "checking for ELF support in BFD" to stop
working causing build failures as we need our LDFLAGS to be used for
correct linking.

That change also meant the code failed to match the comments. Add back the
missing LDFLAGS preservation, fix our builds and match the comment.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Change-Id: Ie91509116fab29f95b9db1ff0b6ddc280d460112
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Reviewed-By: Jose E. Marchesi <jose.marchesi@oracle.com>
gdb/acinclude.m4
gdb/configure