This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [GOLD] [PATCH] Fix for "No rule to make target `-ldl', needed by `incremental-dump'." build error
- From: Ian Lance Taylor <iant at google dot com>
- To: Viktor Kutuzov <vkutuzov at accesssoftek dot com>
- Cc: "binutils\ at sourceware dot org" <binutils at sourceware dot org>
- Date: Wed, 06 Jan 2010 21:52:39 -0800
- Subject: Re: [GOLD] [PATCH] Fix for "No rule to make target `-ldl', needed by `incremental-dump'." build error
- References: <6AE1604EE3EC5F4296C096518C6B77EE018287B01A@mail.accesssoftek.com> <6AE1604EE3EC5F4296C096518C6B77EE018287B01C@mail.accesssoftek.com>
Viktor Kutuzov <vkutuzov@accesssoftek.com> writes:
> 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.
Thanks. Committed with this ChangeLog entry:
2010-01-06 Viktor Kutuzov <vkutuzov@accesssoftek.com>
* Makefile.am (incremental_dump_DEPENDENCIES): Remove
$(THREADSLIB) and $(LIBDL).
* Makefile.in: Rebuild.
Ian