Re: [patch] build issues on Win32
Dag-Erling Smørgrav <des@des.no>
From: Dag-Erling Smørgrav <des@des.no>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2010-03-10T16:37:55Z
Lists: pgsql-hackers
Magnus Hagander <magnus@hagander.net> writes: > Dag-Erling Smørgrav <des@des.no> writes: > > Your users might need to link with both. I'm working on an > > application that generates animations (specifically, animated > > weather forecasts) based on data retrieved from a PostgreSQL > > database. > This shows up only with static links of libpq, correct? Yes. > But the fix seems wrong. If you are using a static libpq, the library > should be added whenever you link that library into your client > application. Not for every single EXE and DLL that postgres produces. Without this patch, pg_ctl fails to build... and I don't see the logic of including ws2_32 in LIBS but not secur32. remember that LIBS directly affects what pg_config reports, so if you don't add secur32 to LIBS, consumers (applications) don't know that they need it. DES -- Dag-Erling Smørgrav - des@des.no