Date: Wed, 17 Jan 1996 16:51:32 -0700 From: kelly@fsl.noaa.gov (Sean Kelly) To: dugger@swn.com Cc: questions@freebsd.org Subject: Re: What is the future FreeBSD and ELF? Message-ID: <9601172351.AA13805@emu.fsl.noaa.gov> In-Reply-To: <ML-2.0.821919909.8565.dugger@quixote.swn.com> (message from Don Dugger on Wed, 17 Jan 1996 15:05:09 -0800 (PST))
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Don" == Don Dugger <dugger@swn.com> writes:
Don> Secondly, dose any one know of info on shared libs? Like how
Don> to build them.
On FreeBSD, it's a piece of cake. Compile your source files with the
-fpic option. Then link 'em with the -Bshareable option and call the
output file lib<whatever>.so.<majorversion>.<minorversion>. For
example:
cc -c -fpic a.c
cc -c -fpic b.c
cc -c -fpic c.c
ld -Bshareable -o libtesting.so.1.0 a.o b.o c.o
Or, you could figure out how to use the bsd.lib.mk Make include file.
--
Sean Kelly
NOAA Forecast Systems Laboratory, Boulder Colorado USA
A quiz: If I am my brother's keeper, who am I? (Answer: me.)
-- Deep Thoughts, by Jack Handey
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9601172351.AA13805>
