This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc-v3: portability of 'ar' w/o file list?
- To: Robert Lipe <robertlipe at usa dot net>
- Subject: Re: libstdc-v3: portability of 'ar' w/o file list?
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 05 Dec 2000 14:47:07 -0200
- Cc: gcc at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <20001205002757.B711@rjlhome.sco.com>
On Dec 5, 2000, Robert Lipe <robertlipe@usa.net> wrote:
> The 'ar' command fails on all three of these System V's. Since we've
> told it that we're "a"dding files to the archive, it demands that we
> actually give it a file to add. (GNU ar in the binutils that I examined
> has no such restriction and is one possible way around this.) I could
> presumably come up with some empty file to archive it or some shell
> wrapper to just create the "!<arch>" header, but that all seems pretty
> gross.
I'm afraid that's the only option. I'd thought about arranging for
libtool to handle this case and create an empty archive, but (i)
there's no portable way to create empty archives and (ii) some linkers
print odd error messages or just crash when given such an empty
archive.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me