Xref: utzoo gnu.gcc.help:616 comp.lang.c:38140 comp.unix.wizards:24788 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uwm.edu!bbn.com!metasoft!mbr From: mbr@metasoft.UUCP (Mark Rosenthal) Newsgroups: gnu.gcc.help,comp.lang.c,comp.unix.wizards Subject: Clarification - Sun shared libraries and ANSI C Keywords: ANSI C,shared libraries,GNU C,Sun Message-ID: <2120@metasoft.UUCP> Date: 10 Apr 91 20:48:27 GMT Article-I.D.: metasoft.2120 Organization: Meta Software Corporation, Cambridge MA Lines: 26 In my earlier request, I stated: > I am dealing with a body of code written in ANSI C and I need to generate > an executable which will use Sun shared libraries. I just realized that I was not explicit enough. I am not asking how I can link my objects with Sun-provided shared libraries such as /usr/lib/libc.so. What I need to do is use the ANSI C sources I have to generate my own shared libraries. Additional relevant information from my earlier request: > The tools I have available to me are the Sun C compiler (cc), loader (ld), > etc. and the GNU C compiler (gcc), loader (gld), etc. > > So far, the code has been compiled with the GNU C compiler. > As far as I know, Sun's cc doesn't handle ANSI C. So what are my options? > Does the GNU loader handle Sun shared libraries? If not, can I compile > with gcc and link with Sun's ld? Does gcc support Sun's idea of PIC code? As before, any help is appreciated. Please mention which version of which software you are referring to, if you know. mbr%metasoft@bbn.com -- mbr%metasoft@bbn.com