Re: [patch] build issues on Win32 - Mailing list pgsql-hackers

From Dag-Erling Smørgrav
Subject Re: [patch] build issues on Win32
Date
Msg-id 86pr3c2kv0.fsf@ds4.des.no
Whole thread Raw
In response to Re: [patch] build issues on Win32  (Magnus Hagander <magnus@hagander.net>)
Responses Re: [patch] build issues on Win32
List 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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [patch] build issues on Win32
Next
From: Dag-Erling Smørgrav
Date:
Subject: Re: [patch] build issues on Win32