[GOLD] [PATCH] Fix for "No rule to make target `-ldl', needed by `incremental-dump'." build error
Viktor Kutuzov
vkutuzov@accesssoftek.com
Wed Jan 6 20:09:00 GMT 2010
Hello everyone,
When gold is built on Mac OS X Snow Leopard (10.6.2), the build could fail with the following error:
mv -f .deps/incremental-dump.Tpo .deps/incremental-dump.Po
make[4]: *** No rule to make target `-ldl', needed by `incremental-dump'. Stop.
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-gold] Error 2
make: *** [all] Error 2
This happens because system library is listed as a dependency and make tries to find a rule to build it.
Please find attached the patch wich fixes this problem.
Tested on Mac OS X Snow Leopard (10.6.2) and Ubuntu 9.10.
Best regards,
Viktor
* gold/Makefile.am : Removed $(THREADSLIB) and $(LIBDL) from the incremental_dump_DEPENDENCIES list.
* gold/Makefile.in: Regenerated for the changed gold/Makefile.am
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold-fix-darwin-build-with-plugins_and_pthread.patch
Type: application/octet-stream
Size: 733 bytes
Desc: gold-fix-darwin-build-with-plugins_and_pthread.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20100106/f75cfdb1/attachment.obj>
More information about the Binutils
mailing list