How to recursively search libs using gcc

Name lastlong brew_pt@yahoo.com
Thu Jan 13 10:28:00 GMT 2011


Hi,

We have an option "--start-group <archive or obj files> --end-group"
to LD that searches the libs recursively.

What do I need to do (if I want to use gcc for linking and not LD) for searching libs recursively using gcc?

I know following workaround;
#gcc -Wl,--start-group <obj or archive files> -Wl,--end-group

Is there any other way?
Does gcc, by default, searches libs recursively?

Thanks for help.

-Brew


      



More information about the Gcc-help mailing list