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/