Building a static libpq version -
04-01-2011
, 03:55 PM
Dear PostgreSQL community,
Compiling the libpq client library (PostgreSQL version 8.4.6) by running
"./configure --without-zlib" and "make all-static-lib" on Windows using
MinGW successfully produces a library called libpq.a (or libpq.lib).
However, applications linked to this library still require a dynamic
link library of libpq (like libpq.dll or something like libpq.dynlink)
to run. This can be confirmed by running a tool checking for
dependencies of the executable (like for example
http://www.dependencywalker.com/ ).
The libpq I compiled doesn't seem to be really static, but rather just
imports a dynamic version of libpq (like libpq.dll).
Could anybody help me carrying out further diagnosis on this issue and
finding the necessary steps for building a static version of libpq?
Thanks in advance,
Julia |