This is the mail archive of the gcc-patches@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]

command line option -staticlib/-archive (was Re: [patch] releases.html)


On Wed, Feb 14, 2001 at 12:36:28PM -0800, Zack Weinberg wrote:
> Random thought: what if we made
> 
> 	gcc -staticlib -o libfoo.a a.o b.o c.o ...
> 
> run ar and possibly ranlib as appropriate to the target?

For reference, the Green Hills toolchain uses -archive for this, and
supports things like "cc -archive -o already_existing_archive.a -c file.c"
and "cc -archive -o archive.a a.c b.c c.c".  I've found it to be
tremendously useful.

I don't know off the top of my head what other compilers might call
this.

Dan

/--------------------------------\  /--------------------------------\
|       Daniel Jacobowitz        |__|        SCS Class of 2002       |
|   Debian GNU/Linux Developer    __    Carnegie Mellon University   |
|         dan@debian.org         |  |       dmj+@andrew.cmu.edu      |
\--------------------------------/  \--------------------------------/


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