summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Freund2022-11-28 19:41:39 +0000
committerAndres Freund2022-11-28 19:43:31 +0000
commitf0cd57f852cb88a4252db175317ec4627ec1b1cd (patch)
treecd19601170046c25db71eb61978b87f3dc303d08
parent4441fc704d7048b2f1f039cc74b72bd23e7e36d0 (diff)
meson: Fix binary mismatch for MSVC plperl vs gcc built perl libs
This mirrors ccc59a83cd9.
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 058382046e1..725e10d815c 100644
--- a/meson.build
+++ b/meson.build
@@ -909,6 +909,12 @@ if not perlopt.disabled()
if host_system == 'windows'
perl_ccflags += ['-DPLPERL_HAVE_UID_GID']
+
+ if cc.get_id() == 'msvc'
+ # prevent binary mismatch between MSVC built plperl and Strawberry or
+ # msys ucrt perl libraries
+ perl_ccflags += ['-DNO_THREAD_SAFE_LOCALE']
+ endif
endif
message('CCFLAGS recommended by perl: @0@'.format(perl_ccflags_r))