Article View: gnu.gcc.help
Article #49444Re: [SunOs-4.1.3] How do I make a shared library with gcc-2.5.5
From: a904209
Date: Fri, 28 Jan 1994 09:24
Date: Fri, 28 Jan 1994 09:24
11 lines
1243 bytes
1243 bytes
Morgan Stair wrote in article <MORGAN.94Jan27115236@dl5000.bc.edu> : > >I've got a bunch of subroutines written for gcc on the SUN, and I need >to make a shared library (.so) so they can be used with IDL. Can >anyone tell me if it's possible to do this with GCC, or must I use >Sun's CC compiler? > It can be done with gcc, use -fpic or -fPIC instead of -pic or -PIC. You MUST have configured gcc to use sun's "as" as "gas" cannot handle building pic. You may need to include -lgcc in the "ld" step to build shared library as it is itself not shared.
Technical Details
Message-ID:
<CKC24x.5yq@csc.ti.com>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!cauldron!ra.csc.ti.com!usenetReferences:
<MORGAN.94Jan27115236@dl5000.bc.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,a4bd5ed9deb131f,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1994-01-29 06:28:12 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!cauldron!ra.csc.ti.com!usenet From: a904209@pluto.tiuk.ti.com Subject: Re: [SunOs-4.1.3] How do I make a shared library with gcc-2.5.5 Message-ID: <CKC24x.5yq@csc.ti.com> Sender: usenet@csc.ti.com Nntp-Posting-Host: pluto.tiuk.ti.com Organization: Texas Instruments Ltd. References: <MORGAN.94Jan27115236@dl5000.bc.edu> Date: Fri, 28 Jan 1994 09:24:32 GMT Lines: 11