[uClibc] gcc and ld

Manuel Novoa III mjn3 at codepoet.org
Sat Sep 18 20:59:13 UTC 2004


Hello,

On Sat, Sep 18, 2004 at 04:58:23PM -0400, Frank Kujawski wrote:
> Perhaps if I included all my thoughts, the replies would be of more
> use.  Sorry,
> 	Frank
> 
> where/why does the '--as-needed' come from? and how do I get gcc not to
> call ld with this option.
> 
> 
> sh-2.05b# gcc -Wall  -D__USE_FIXED_PROTOTYPES__  -o sgu sgu.c
> /usr/bin/ld: unrecognized option '--as-needed'
> /usr/bin/ld: use the --help option for usage information
> collect2: ld returned 1 exit status
> sh-2.05b#

How did you build your toolchain?  What versions of gcc and binutils?

Manuel



More information about the uClibc mailing list