duplicate -lgcc --as-needed -lgcc_s --no-as-needed
Jakub Jelinek
jakub@redhat.com
Thu Jun 2 12:26:00 GMT 2005
On Thu, Jun 02, 2005 at 01:59:46PM +0200, Peter S. Mazinger wrote:
> Hello!
>
> the sequence used for linking on x86 (but most archs will have it too)
> -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s
> --no-as-needed
> contains duplicate. Is this really necessary?
>
> Will the '--as-needed -lgcc_s --no-as-needed' ever apply?
> The missing symbols will be found in -lgcc.
That's not true. The EH stuff is not in -lgcc, so if -lc needs it,
it wouldn't be found.
Jakub
More information about the Gcc
mailing list