This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: COLLECT_GCC and friends
- To: gcc at gcc dot gnu dot org, mark at codesourcery dot com
- Subject: Re: COLLECT_GCC and friends
- From: Mike Stump <mrs at windriver dot com>
- Date: Mon, 22 Jan 2001 13:22:55 -0800 (PST)
> To: gcc@gcc.gnu.org
> From: Mark Mitchell <mark@codesourcery.com>
> Date: Mon, 22 Jan 2001 11:55:43 -0800
> We pass COLLECT_GCC and COLLECT_GCC_OPTIONS through the environment
> rather than through command-line arguments to collect2?
> It's rather tricky us hiding these things away, and makes cutting and
> pasting -v output in the shell not work, which is very unfriendly to
> debugging on platforms where collect2 is used.
> What's the rationale?
In a time long since passed, collect2 used to be called ld, and it
used to be a drop in replacement for ld, in part, taking the same
exact flags. Further, one used to not know what ld was going to be,
one could change it, and it should just work. This used to even work
after configuring building and installing, as I recall.
Those days are gone. All the bits of code that supported this are
obsolete and can be removed. We know if collect2 is in use, and it
can have its own flags, if we want.