This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Specifying command line arguments in a file?
- To: geoffk at geoffk dot org
- Subject: Re: Specifying command line arguments in a file?
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Mon, 30 Apr 2001 14:07:08 -0700
- Cc: rjschwei at hks dot com, gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
- References: <jmr8ya1c59.fsf@geoffk.org>
>>>>> "Geoff" == Geoff Keating <geoffk@geoffk.org> writes:
Geoff> Robert Schweikert <rjschwei@hks.com> writes:
>> IS there a secret handshake between gcc and ld to get a large
>> number of object files to be linked to ld without going through
>> exce and without trying to mangle up a linker script?
Geoff> Typically you put the object files in a .a library.
Yeah, but if there are really tons of them then you can't build *that*
command-line either, so you end up building the library .o file by .o
file, which is a pain, too. And anyhow a .a has different semantics,
unless you have --full-archive available.
For full generality, you just can't get around this problem.
We need to bite the bullet and implement -@. In fact, we should do it
in libiberty: write a routine to transform a file into an argv array.
Then, we can bury whatever weird quoting semantics we want in there,
and use this code everywhere.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com