From owner-freebsd-hackers Thu Nov 16 17:06:54 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id RAA27361 for hackers-outgoing; Thu, 16 Nov 1995 17:06:54 -0800 Received: from hub.org (hub.org [199.166.238.138]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id RAA27342 ; Thu, 16 Nov 1995 17:06:42 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id UAA15948; Thu, 16 Nov 1995 20:06:34 -0500 (EST) Date: Thu, 16 Nov 1995 20:06:23 -0500 (EST) From: "Marc G. Fournier" To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Shared Libraries...almost there... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org Precedence: bulk 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 :( So...back to the drawing board... what am I missing? can someone who has the src's distribution available send me the Makefile for ncurses that is being used for the standard ncurses distribution? Essentially, so that I don't get a bunch of "just type make out of the src's directory" answers this time...I'm trying to get ncurses 1.9.8 compiled and working. It compiles and works cleanly using static libraries, but getting it to compile shared has been a new experience... ...so, what key step have I missed in all this? I assume that when gcc compiles, its going to look at the "registered" ncurses shared library, which is the one that was installed when the system was built, right? thanks... 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.