🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50027

Re: gcc 2.4.5 how to create shared libs on Solaris2.3?

#50027
From: Ronald F. Guilmette
Date: Mon, 29 Nov 1993 01:10
19 lines
1404 bytes
In article <2cin1dINN4um@maz4.sma.ch> oet@sma.ch writes:
>With the SUN-C-Compiler under Solaris 2.3 I use the following
>syntax to create a shared library archiv:
>
>   idlmeteo.so: $(C_SRCS)
>        cc -G -Kpic -c $(C_SRCS)
>        ld -G -o idlmeteo.so $(C_OBJS)
>
>
>Does someone know how is the syntax for the GNU - C Compiler 
>( gcc 2.4.5 ) to get a shared library archive ?

Try compiling and linking with -shared.

-- 

-- Ronald F. Guilmette, Sunnyvale, California -------------------------------
------ domain address: rfg@netcom.com ---------------------------------------
------ uucp address: ...!uunet!netcom.com!rfg -------------------------------
Technical Details
Message-ID: <rfgCH8B9B.B8z@netcom.com>
Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!news.rhrz.uni-bonn.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!xlink.net!howland.reston.ans.net!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!rfg
References: <2cin1dINN4um@maz4.sma.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,ce17c8331c0cdb77
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-11-28 18:46:09 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!urmel.informatik.rwth-aachen.de!news.rhrz.uni-bonn.de!rrz.uni-koeln.de!unidui!math.fu-berlin.de!xlink.net!howland.reston.ans.net!gatech!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!rfg
From: rfg@netcom.com (Ronald F. Guilmette)
Subject: Re: gcc 2.4.5 how to create shared libs on Solaris2.3?
Message-ID: <rfgCH8B9B.B8z@netcom.com>
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
References: <2cin1dINN4um@maz4.sma.ch>
Date: Mon, 29 Nov 1993 01:10:22 GMT
Lines: 19