Re: stand-alone psql - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: stand-alone psql
Date
Msg-id 200409011751.26948.peter_e@gmx.net
Whole thread Raw
In response to stand-alone psql  (John DeSoi <jd@icx.net>)
Responses Re: stand-alone psql  (John DeSoi <jd@icx.net>)
List pgsql-general
John DeSoi wrote:
> I'm looking for a way to build psql on OS X so that it can be copied
> to another computer without any external dependencies. In particular,
> if I build the standard distribution and then copy psql to another
> computer, I get an error that /mydir/.../lib/libpq.3.dylib cannot be
> found. This is probably basic make stuff, but I'm not sure where to
> start.

You could link psql statically.  You would have to look up in your
compiler/linker manual how to do that though.  The relevant makefile is
in src/bin/psql.  Setting LDFLAGS globally to some option like -static
might work.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: <> syntax legal?
Next
From:
Date:
Subject: Re: <> syntax legal?