Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!decwrl!uunet!mcsun!hp4nl!phigate!philica!adrie From: adrie@philica.ica.philips.nl (Adrie Koolen) Newsgroups: comp.os.minix Subject: Re: How do I build libraries with gcc-ar ? Message-ID: <681@philica.ica.philips.nl> Date: 4 Oct 90 14:08:09 GMT References: <1990Oct3.115632.9757@ecn.purdue.edu> Reply-To: adrie@beitel.ica.philips.nl (Adrie Koolen) Organization: Philips TDS, Innovation Centre Aachen Lines: 18 In article <1990Oct3.115632.9757@ecn.purdue.edu> cyliax@orchestra.ecn.purdue.edu (Ingo Cyliax) writes: >Has anyone successfully build libraries with the Gnu archiver "gcc-ar" >under Minix-ST ? Mine blows up when I try the 'standard' ways: > > gcc-ar r libc.a objects... For the Sparc version of Minix, I use the FSF GNU C-compiler. As its loader directly reads libc.a, it knows the ar format and __.SYMDEF. The GNU ar file format is somewhat different from the Minix ar file format (merely the ASCII type of header), so I also use GNU ar. Some changes were necessary. To use the `ranlib' feature, ar must be able to read the symbol table of object files, so it needs a.out.h. I provided it with a Sun compatible a.out.h, because the `.o' files of Minix-Sparc are in GNU (=SunOS) format. Furthermore, I defined USG. I compiled it with the GNU C-compiler under Minix on a SparcStation 1 and it works! Adrie Koolen (adrie@ica.philips.nl) Philips Innovation Centre Aachen