HP/Compaq Tru64 linker semantics

Rainer Orth ro@TechFak.Uni-Bielefeld.DE
Thu Apr 29 00:55:00 GMT 2004


Jim Wilson writes:

> This is because of confusion between "-o output" and
> "-oldstyle_liblookup"  This should be fixable by defining
> SWITCHES_NEED_SPACES to include "o".  This changes both gcc.c and
> collect2.c, and they will no longer accept "-ooutput" as valid, which
> should let the Tru64 linker option work.

True, this is even mentioned in the PR.  I've just checked that this is
true: ld doesn't understand -otest (instead of -o test).  I once had a
hacky patch to let collect2 pass through certain flags (like
-oldstyle_liblookup) unprocessed, but this is much cleaner.

I'll prepare a patch.

Thanks.
	Rainer

-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University



More information about the Gcc mailing list