Re: pgwin32_safestat weirdness - Mailing list pgsql-hackers

From Magnus Hagander
Subject Re: pgwin32_safestat weirdness
Date
Msg-id 20080415095336.2f2c0d48@mha-laptop
Whole thread Raw
In response to Re: pgwin32_safestat weirdness  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
> > I would be quite happy with that, but before we go down that path
> > I'd like to know why the MSVC builds aren't failing now from this
> > when the MinGW builds are.
> 
> Maybe the MSVC linker is willing to bind libpq's call to a safestat
> copy extracted from libpgport.a in the surrounding program --- IOW,
> it works only for calling programs that include libpgport, but all
> ours do.

Actually, on msvc we link libpq against libpgport, and not the
individual files. Since we have a defined export list, it should remove
all the unused functions automatically.

//Magnus


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: rule for update view that updates/inserts into 2 tables
Next
From: Magnus Hagander
Date:
Subject: Re: pgwin32_safestat weirdness