[patch] Fix the bootstrap test when building with --enable-plugins

Rafael Espindola espindola@google.com
Fri Oct 9 15:47:00 GMT 2009


When we build binutils with --enable-plugins, bfd will depend on libdl
and this causes the gnu ld bootstrap tests to fail. The attached patch
fixes this. It adds -ldl if we have plugins enabled and skips the
static linking test since it would fail with the warning about using
ldl in a statically linked binary.

Note that I don't know tcl, so I am likely trying to detect plugin
support the wrong way.

2009-10-09  Rafael Avila de Espindola  <espindola@google.com>

	* bootstrap.exp: Detect if plugins are enabled. Skip the static
	link test and add -ldl to the remaining tests if they are.
	
Cheers,
--
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ld-bootstrap.patch
Type: text/x-diff
Size: 1471 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20091009/bb35fc23/attachment.bin>


More information about the Binutils mailing list