-Wl vs -W1

Ian Lance Taylor iant@google.com
Wed Sep 6 02:41:00 GMT 2006


Andrew <andrew@ugh.net.au> writes:

> On Wed, 5 Sep 2006, Ian Lance Taylor wrote:
> 
> > Are you sure you are asking about gcc?  To my knowledge gcc does not
> > support with a -Wl or a -W1 option.  This is what I see when I try it:
> 
> I think you must provide a comma (so the full option is probably
> technically -1, and -l,. The man page lists "-Wl,option". It passes
> arguments through to the linker by some means (I'm using it with
> -W1,-soname,libfoo.so.1).

Oh yeah, I managed to forget about that.  -Wl is used to pass options
to the linker.

-W1 still doesn't mean anything, though, as far as I know.

Ian



More information about the Gcc-help mailing list