Date: Sun, 5 Oct 1997 04:38:48 -0300 (ADT) From: The Hermit Hacker <scrappy@hub.org> To: hackers@freeBSD.org Subject: static vs dynamic compiling... Message-ID: <Pine.NEB.3.96.971005043836.220g-100000@thelab.hub.org>
next in thread | raw e-mail | index | archive | help
Hi... 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 If I do a simple program (hello world) this does work... I realize that this is probably a really simple question, but I generally just compile using the 'default' of 'dynamic' and not worry about it, but I'm trying to make a static binary that I can run on another FreeBSD system, of a different release :( Thanks for any help, in advance... 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.971005043836.220g-100000>