Date: Sun, 5 Oct 1997 16:00:10 -0300 (ADT) From: The Hermit Hacker <scrappy@hub.org> To: Joerg Wunsch <joerg_wunsch@uriah.heep.sax.de> Cc: hackers@FreeBSD.ORG Subject: Re: static vs dynamic compiling... Message-ID: <Pine.NEB.3.96.971005155956.220j-100000@thelab.hub.org> In-Reply-To: <19971005134214.NH30632@uriah.heep.sax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 5 Oct 1997, J Wunsch wrote: > As The Hermit Hacker wrote: > > > I'm curious as to why I get the following error when attempting > > to compile using -static: > > > > gcc -static pg_dump.o common.o -o pg_dump -L../../interfaces/libpq -lpq \ > > -L/usr/local/lib -lcrypt -lcompat -lln -lm -lreadline -ltermcap \ > > -lcurses > > ld: No reference to __DYNAMIC > > gmake: *** [pg_dump] Error 1 > > Because dlopen(3) & friends are only available on dynamically linked > binaries (in our a.out, as i understand it). Ack, okay. That explains it right there :( Marc G. Fournier Systems Administrator @ hub.org primary: scrappy@hub.org secondary: scrappy@{freebsd|postgresql}.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96.971005155956.220j-100000>