Date: Wed, 26 Nov 1997 20:00:05 +0000 From: "John S. Dyson" <dyson@FreeBSD.ORG> To: Kwang-Soo Kim <kimk@cs.unc.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to build a shared library... Message-ID: <347C7FC5.5372FD3C@freebsd.org> References: <199711261916.OAA28859@handel.cs.unc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Kwang-Soo Kim wrote: > How to build shared library on FreeBSD? > I tried "-fPIC" and "-shared" options with "gcc" without any luck. > > % gcc -I/usr/local/jdk1.1/include -fPIC -c AudioInFBSD.c > % gcc -shared AudioInFBSD.o -o libAudioIn.so > ld: No reference to __DYNAMIC > > Thanks for any tip. > Kwang-Soo Kim Try gcc -Bshareable instead of -shared. John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?347C7FC5.5372FD3C>