ld: cannot find -lc

Răzvan Surdulescu surdules@gmail.com
Sun Dec 5 08:57:00 GMT 2010


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?

Thanks,

Razvan.

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



More information about the crossgcc mailing list