This is on release NetBSD-1.4/i386. I thought all I needed was LDSTATIC=-static in the Makefile, but % make cc -static -o admin.cgi admin.o dbase.o monad.o user.o keyvalue.o www.o mail.o policy.o -lstdc++ -L/usr/local/pgsql/lib -lpq++ -lpq ld: No reference to __DYNAMIC collect2: ld returned 1 exit status *** Error code 1 Stop. ?! Cheers, Patrick