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

Поиск
Список
Период
Сортировка
От Noah Misch
Тема pgsql: MSVC 2012+: Permit linking to 32-bit, MinGW-built libraries.
Дата
Msg-id E1eNb26-0001U8-2Z@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/470de6a24d37d630515c5112e1bebe03a742b2c8

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


В списке pgsql-committers по дате отправления:

Предыдущее
От: Noah Misch
Дата:
Сообщение: pgsql: MSVC: Test whether 32-bit Perl needs -D_USE_32BIT_TIME_T.
Следующее
От: Magnus Hagander
Дата:
Сообщение: pgsql: Fix typo