On Jan 25, 2014 1:32 AM, "Perry Smith" wrote: > > I think, a %D in a spec creates a list of -L/a/b/c -L/d/e/f. gcc -dumpspecs > shows me that link_libgcc goes to %D but it does not show me what %D > produces. Is there a way to get gcc to dump that out? > > Basically what I'm trying to do is find the list of library paths that GCC > tells ld to use when it calls ld.
Adding -v to the gcc command will show everything it passes to the linker, you should be able to deduce what comes from the specs from that.