|
gcc-uClibc botches -nodefaultlibs / -nostdlib: msg#00166lib.uclibc.general
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:
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> |
|---|---|---|
| Previous by Date: | Re: pthreads patches: 00166, Erik Andersen |
|---|---|
| Next by Date: | Re: gcc-uClibc botches -nodefaultlibs / -nostdlib: 00166, Erik Andersen |
| Previous by Thread: | pthreads patchesi: 00166, Arne Jonsson |
| Next by Thread: | Re: gcc-uClibc botches -nodefaultlibs / -nostdlib: 00166, Erik Andersen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |