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: dewar at gnat dot com
- Subject: Re: Specifying command line arguments in a file?
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Mon, 30 Apr 2001 23:54:08 -0700
- Cc: geoffk at geoffk dot org, rjschwei at hks dot com, gcc at gcc dot gnu dot org
- References: <20010501045019.82FABF289F@nile.gnat.com>
On Tue, May 01, 2001 at 12:50:19AM -0400, dewar@gnat.com wrote:
> Note that several linkers do have this kind of capability (to read lists
> of objects from a file). This capability is available on both DEC Unix
> (Tru64) and IRIX. It seems a useful feature for any linker.
>
> Sure you can put objects in a .a library but that is often not convenient
> when you are building big systems. You can still reach command line length
> limits even after breaking things down into subsystems.
You can put a list of objects in a file with th GNU ld. Under Linux,
# cat /usr/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
H.J.