Subject: Re: static linking
To: None <prlw1@cam.ac.uk>
From: David Brownlee <abs@anim.dreamworks.com>
List: netbsd-help
Date: 08/03/1999 13:43:25
That _should_ work - are all of the libraries against which you
are linking available in static form?
What does a 'cc -v -static ...' give?
David/absolute
-=- Resentment is a renewable resource -=-
On Tue, 3 Aug 1999, Patrick Welche wrote:
> 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
>