This is the mail archive of the
mailing list for the GCC project.
Re: How to handle linker options beginning with -f?
On Mon, May 07, 2001 at 12:11:42PM -0700, Stan Shebs wrote:
> In fact, there are many system-specific linker options in GCC sources,
> for instance -Qy, -Qn, -YP, -assert*, -G, -rpath, -defsym, -R*, -z,
> -K, -EB, -EL, -rdynamic, -call_shared, -exact_version, and so forth.
> The common theme is that they don't start with 'f', and indeed if Apple's
> option was called "-Zframework" or "-Qframework", I could stick it in
> LINK_SPEC and no one would care (at least not until -Z* got used for
> something else). The problem is that "-framework" is the most logical
> name for the option, and it has been in use for many years already,
> so I think it has just as much (or more) justification to be in GCC
> as all those other linker options.
I had the same problem when I added -rdynamic for Linux. I couldn't
find a better name which gcc would take and I was too lazy to hack
gcc.c for it :-).