*BSD News Article 93773


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!msunews!agate!blanket.mitre.org!news.mathworks.com!fu-berlin.de!irz401!not-for-mail
From: Michael Hohmuth <hohmuth@inf.tu-dresden.de>
Newsgroups: comp.unix.bsd.openbsd.misc
Subject: Re: Dll in Unix
Date: 17 Apr 1997 03:03:16 +0200
Organization: Dept. of Computer Science, TU Dresden, Germany
Lines: 15
Sender: hohmuth@os.inf.tu-dresden.de
Message-ID: <7spvvu8nqk.fsf@os.inf.tu-dresden.de>
References: <3354db72.562926@noticias.ibernet.es>
NNTP-Posting-Host: os.inf.tu-dresden.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: Gnus v5.3/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.openbsd.misc:63

lterroba@mail.comunet.es (Luis Felipe Terroba Gumiel) writes:

> Could anybody tell me how to create and use Dll in Unix? Thanks.

Using "gcc -fpic" and "ld -sharable".  See also "man 5 link" and "man
ld.so".

BSD also has `make' rules for creating shared libraries in bsd.lib.mk.
For an example of using this mechanism, see
e.g. /usr/src/lib/libc/Makefile.

Michael
-- 
hohmuth@inf.tu-dresden.de, hohmuth@sax.de
http://www.sax.de/~hohmuth/