From owner-freebsd-questions Thu Nov 16 19:22:07 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id TAA06949 for questions-outgoing; Thu, 16 Nov 1995 19:22:07 -0800 Received: from hub.org (hub.org [199.166.238.138]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id TAA06934 ; Thu, 16 Nov 1995 19:21:54 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id WAA19483; Thu, 16 Nov 1995 22:21:36 -0500 (EST) Date: Thu, 16 Nov 1995 22:21:28 -0500 (EST) From: "Marc G. Fournier" To: Nate Williams cc: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Shared Libraries...almost there... In-Reply-To: <199511170127.SAA10855@rocky.sri.MT.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Thu, 16 Nov 1995, Nate Williams wrote: > Marc G. Fournier writes: > > > > Hi... > > > > Well, I've finally got it down to the point that I have > > to compile with -fpic, and then link with "ld -Bshareable" to create > > a shared library...but it doesn't look right... > > > > Looking at /usr/share/mk/bsd.lib.mk, I'm supposed to be using > > "shlib_version" to get major/minor numbers for the libraries I create, > > but I can't find that. And, the shared library I created is over 3x > > the size of the original ncurses shared library that comes with the > > system...so I screwed up somewhere :( > > Look /usr/share/mk/bsd.lib.mk and note the ld commands. These are used > to 'strip' out un-necessary (And some necessary according to Bruce) Bruce...are you out there? :) Right now, I've left it 'unstripped'...what is necesary that stripping gets rid of? debug code would be my first guess... Marc G. Fournier | Knowledge, Information and Communications, Inc (ki.net) scrappy@hub.org | soon to be: | scrappy@ki.net | For more information, send me email.