Peter Eisentraut <[EMAIL PROTECTED]> writes: > Am Donnerstag, 23. September 2004 13:02 schrieb Thomas Hallgren: >> From what I can understand from the documentation, the only utility in >> PostgreSQL that actually uses zlib is pg_dump? If so, why is the >> postgres process linked with -lz?
> Because we are too lazy to fine-tune the build system for cases like this. I was just reading about a linker option (--as-needed or something like that) that exists in more recent versions of the GNU linker. It means "only link the libraries actually referenced". Applying this or local equivalent where available would seem like a fairly painless way to solve the problem, at least on some platforms. I agree that trying to keep track of the set of libraries really needed for each executable would be a hopeless task, but if we can make the linker fix it for us ... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly