From owner-freebsd-questions Tue Sep 19 00:23:54 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA14871 for questions-outgoing; Tue, 19 Sep 1995 00:23:54 -0700 Received: from pancake.remcomp.fr (root@pancake.remcomp.fr [194.51.30.1]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id AAA14851 for ; Tue, 19 Sep 1995 00:23:23 -0700 Received: from zapata.omnix.fr.org (zapata.omnix.fr.org [128.127.10.1]) by zapata.omnix.fr.org (8.6.9/8.6.9) with SMTP id JAA01668; Tue, 19 Sep 1995 09:16:09 +0200 Date: Tue, 19 Sep 1995 09:16:09 +0200 (MET DST) From: Didier Derny To: "Edward E. Elzey" cc: Don Whiteside , questions@FreeBSD.ORG Subject: Re: FBSD v2.0.5: shared libraries - HOW TO...? In-Reply-To: <9509181701.AA26767@seaysys.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG Precedence: bulk to build a shared library compile your programs with cc -fpic .......... and link them with ld -Bshareable -o xxxx.so.y.z ... your object files ... it works fine +---------------------+ | Didier Derny | | didier@omnix.fr.org | +---------------------+ On Mon, 18 Sep 1995, Edward E. Elzey wrote: > Received from Don Whiteside: > > > > On Wed, 13 Sep 1995 mikebo@tellabs.com wrote: > > > > > Is there any documentation of the Shared Library system employed by > > > FreeBSD? For instance... I want to be able to replace a routine in > > > the standard libc, but there doesn't appear to be any instructions on > > > "how to" rebuild the shared libraries - as there is in SunOS > > > /usr/lib/shlib.etc/README. There ought to be a simpler way to do this > > > than "make"ing the entire libc from source. I only want to replace > > > one module! > > > > I believe what you want is 'man ar' > > > > Actually, no. That won't help. > > Shared object libraries are not created with 'ar', rather with > 'ld'. The closest that I can think of to documentation would be > to read 'man ld' and look for a description of '-Bshareable'. > It is possible that this documentation is not 100% > accurate due to FreeBSD specific differences in object > structures. I really cannot speak authoritatively on this. > > -- > Edward E. Elzey Technical Support Analyst Seay Systems, Inc. > > Millions of dollars of Department of Defense funds went into developing 4.4BSD. > Get your tax dollars worth, use FreeBSD! >