From bfb2a8f90476eee2c32387320b53f4f8aeead825 Mon Sep 17 00:00:00 2001 From: "Craig A. Berry" Date: Sun, 16 Feb 2014 14:22:25 -0600 Subject: [PATCH] Exclude Perl_my_setlocale symbol where it's not defined. Because makedef.pl doesn't take into account the various ifdefs in embed.fnc, it must repeat their logic by maintaining various sets of platform-specific inclusions and exclusions. Perl_my_setlocale was added in b385bb4ddcb for Win32 only, so we shouldn't be telling the linker to export it except on Win32. --- makedef.pl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makedef.pl b/makedef.pl index 27f71ff..8b972a4 100644 --- a/makedef.pl +++ b/makedef.pl @@ -235,6 +235,12 @@ if ($ARGS{PLATFORM} ne 'vms') { } } +if ($ARGS{PLATFORM} ne 'win32') { + ++$skip{$_} foreach qw( + Perl_my_setlocale + ); +} + unless ($define{UNLINK_ALL_VERSIONS}) { ++$skip{Perl_unlnk}; } -- 2.7.4