ld: cannot find -lc

Arnaud Lacombe lacombar@gmail.com
Sun Dec 5 16:17:00 GMT 2010


Hi,

2010/12/5 Răzvan Surdulescu <surdules@gmail.com>:
> 2010/12/4 Arnaud Lacombe <lacombar@gmail.com>:
>> 2010/12/5 Răzvan Surdulescu <surdules@gmail.com>:
>>> 2010/11/28 Răzvan Surdulescu <surdules@gmail.com>:
>>>> Then, I looked at the build.log, and noticed that, after sed runs (and
>>>> correctly modified libgcc.mk by removing the "-lc"), the file
>>>> libgcc.mk is actually generated *again* lower below. Naturally, this
>>>> reintroduces the "-lc" link parameter, and causes the build to fail.
>>>
>> FWIW, all that sed stuff is useless.
>
> I thought the sed command removes the "-lc" parameter from libgcc.mk.
> Without this sed command, GCC stage would fail to compile, since -lc
> doesn't exist yet. I'm looking at line 278 in
> http://ymorin.is-a-geek.org/hg/crosstool-ng/file/6d909657dbdf/scripts/build/cc/gcc.sh
>
> Can you elaborate?
>
All is in the patch I sent a week ago.

 - Arnaud

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list