Only define NO_THREAD_SAFE_LOCALE for MSVC plperl when required
authorAndrew Dunstan <andrew@dunslane.net>
Sat, 14 Sep 2024 12:37:08 +0000 (08:37 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sat, 14 Sep 2024 13:19:53 +0000 (09:19 -0400)
commitf40d9e9f1b5892a340d5ed5d650c9dc3cf72e6e9
tree72a0efc2a98005b993b6664fb9f611c575c5d16f
parentb27215dbb42b6376515e1ab1ff06e0ad9ab13450
Only define NO_THREAD_SAFE_LOCALE for MSVC plperl when required

Latest versions of Strawberry Perl define USE_THREAD_SAFE_LOCALE, and we
therefore get a handshake error when building against such instances.
The solution is to perform a test to see if USE_THREAD_SAFE_LOCALE is
defined and only define NO_THREAD_SAFE_LOCALE if it isn't.

Backpatch the meson.build fix back to release 16 and apply the same
logic to Mkvcbuild.pm in releases 12 through 16.

Original report of the issue from Muralikrishna Bandaru.
src/tools/msvc/Mkvcbuild.pm