Date: Sun, 5 Oct 1997 13:42:14 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: hackers@FreeBSD.ORG Cc: scrappy@hub.org (The Hermit Hacker) Subject: Re: static vs dynamic compiling... Message-ID: <19971005134214.NH30632@uriah.heep.sax.de> In-Reply-To: <Pine.NEB.3.96.971005043836.220g-100000@thelab.hub.org>; from The Hermit Hacker on Oct 5, 1997 04:38:48 -0300 References: <Pine.NEB.3.96.971005043836.220g-100000@thelab.hub.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971005134214.NH30632>