This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to recursively search libs using gcc
- From: Name lastlong <brew_pt at yahoo dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 13 Jan 2011 02:28:47 -0800 (PST)
- Subject: How to recursively search libs using gcc
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