Only define NO_THREAD_SAFE_LOCALE for MSVC plperl when required
authorAndrew Dunstan <[email protected]>
Sat, 14 Sep 2024 12:37:08 +0000 (08:37 -0400)
committerAndrew Dunstan <[email protected]>
Sat, 14 Sep 2024 13:20:12 +0000 (09:20 -0400)
commitd94e3b33eaf6c57109a21115572ac78124da5939
treed9e3059e8b14f1fdd4c9a6361395c749a32f5b46
parent813ade54806c0bce9a0b74db4e7977f9d0be0185
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