logo       

gcc-uClibc botches -nodefaultlibs / -nostdlib: msg#00166

lib.uclibc.general

Subject: gcc-uClibc botches -nodefaultlibs / -nostdlib

The uClibc gcc wrapper screws up when you pass one of the above options:

(1) They both suppress libraries specified on the command line, as
well as system libraries!

(2) -nodefaultlibs should be translated into -nostdlib instead of just
being passed through, because the wrapper explicitly specifies
which crt0.o &c to use.

Here's a patch to fix the above two problems, which works for me. I
edited it by hand to remove some other local changes, so there's a small
chance that it may not apply cleanly, but you get the idea:


Attachment: uclibc-gcc-uClibc-nostdlibs.patch
Description: uclibc-gcc-uClibc-nostdlibs.patch




BTW, another question I have is: why does the wrapper pass -lgcc
_twice_, once before the user libs, and once after?

Thanks,

-Miles
--
I'd rather be consing.
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise