Date: Sat, 11 Apr 1998 14:31:51 -0600 From: Nate Williams <nate@mt.sri.com> To: Fred Gilham <gilham@csl.sri.com> Cc: hackers@FreeBSD.ORG Subject: Re: Pesky ld Problem Message-ID: <199804112031.OAA24107@mt.sri.com> In-Reply-To: <199804111701.KAA07030@snapdragon.csl.sri.com> References: <Pine.BSI.3.91.980411061756.9193B-100000@lily.ezo.net> <199804111701.KAA07030@snapdragon.csl.sri.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > cc -static -o outputfile objectfiles.o objectfiles.lo -libraryfiles .. > > ld: No reference to __DYNAMIC .. > I've seen this happen when you try to link a shared (pic) object into > a static binary. Make sure all your object files and libraries are > static (compiled without the -fpic or -fPIC option to GCC), or link > dynamically. Actually, how they were compiled is irrelevant (although if you plan on making them static they'll be slower if compiled -fPIC), but it has to do with how they are 'bundled' at link time. Shlibs are bundled differently than plain .o files, and *require* that they be linked shared. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804112031.OAA24107>