This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Specifying command line arguments in a file?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]