*BSD News Article 68535


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.sdsmt.edu!tau.uac.net!uhog.mit.edu!news.mathworks.com!fu-berlin.de!zrz.TU-Berlin.DE!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Dynamic libraries
Date: 14 May 1996 23:26:54 GMT
Organization: Private BSD site, Dresden
Lines: 18
Message-ID: <4nb4ru$20d@uriah.heep.sax.de>
References: <slrn4pfq47.5mc.feisal@lancelot.valsayn.tt>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

feisal@tstt.net.tt (Feisal Mohammed) wrote:

> I am building some dynamic (.so) libraries for RLaB. I had built
> them before as static (.a) and would prefer to have dynamic.
> I compiled all the objects with "gcc -fPIC ..." then linked
> with "gcc -shared -o library.so ....", but I get this error message
> "ld: No reference to __DYNAMIC"

The simplest way is to have a look at the Makefiles in /usr/src/lib.
I think, most of the shlib stuff is already hidden inside
<bsd.lib.mk>.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)