Skip to content

Commit f0cd57f

Browse files
committed
meson: Fix binary mismatch for MSVC plperl vs gcc built perl libs
This mirrors ccc59a8.
1 parent 4441fc7 commit f0cd57f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

meson.build

+6
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,12 @@ if not perlopt.disabled()
909909

910910
if host_system == 'windows'
911911
perl_ccflags += ['-DPLPERL_HAVE_UID_GID']
912+
913+
if cc.get_id() == 'msvc'
914+
# prevent binary mismatch between MSVC built plperl and Strawberry or
915+
# msys ucrt perl libraries
916+
perl_ccflags += ['-DNO_THREAD_SAFE_LOCALE']
917+
endif
912918
endif
913919

914920
message('CCFLAGS recommended by perl: @0@'.format(perl_ccflags_r))

0 commit comments

Comments
 (0)