pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@postgresql.org
Subject: pgsql: MSVC 2012+: Permit linking to 32-bit, MinGW-built libraries.
Date: Sat, 09 Dec 2017 09:02:54 +0000
Message-ID: <E1eNb26-0001U6-2P@gemulon.postgresql.org> (raw)

MSVC 2012+: Permit linking to 32-bit, MinGW-built libraries.

Notably, this permits linking to the 32-bit Perl binaries advertised on
perl.org, namely Strawberry Perl and ActivePerl.  This has a side effect
of permitting linking to binaries built with obsolete MSVC versions.

By default, MSVC 2012 and later require a "safe exception handler table"
in each binary.  MinGW-built, 32-bit DLLs lack the relevant exception
handler metadata, so linking to them failed with error LNK2026.  Restore
the semantics of MSVC 2010, which omits the table from a given binary if
some linker input lacks metadata.  This has no effect on 64-bit builds
or on MSVC 2010 and earlier.  Back-patch to 9.3 (all supported
versions).

Reported by Victor Wagner.

Discussion: https://postgr.es/m/20160326154321.7754ab8f@wagner.wagner.home

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/055532badd16b01f54951559139cb664c456cb8f

Modified Files
--------------
src/tools/msvc/MSBuildProject.pm | 2 ++
1 file changed, 2 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1eNb26-0001U6-2P@gemulon.postgresql.org>
Permalink:  ../E1eNb26-0001U6-2P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eNb26-0001U6-2P@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: noah@leadboat.com
  Subject: Re: pgsql: MSVC 2012+: Permit linking to 32-bit, MinGW-built libraries.
  In-Reply-To: <E1eNb26-0001U6-2P@gemulon.postgresql.org>
  References: <E1eNb26-0001U6-2P@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox