Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 1995 20:06:23 -0500 (EST)
From:      "Marc G. Fournier" <scrappy@hub.org>
To:        freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Shared Libraries...almost there...
Message-ID:  <Pine.BSF.3.91.951116195056.6449c-100000@hub.org>

next in thread | raw e-mail | index | archive | help

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.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.951116195056.6449c-100000>