Exclude Perl_my_setlocale symbol where it's not defined.
authorCraig A. Berry <craigberry@mac.com>
Sun, 16 Feb 2014 20:22:25 +0000 (14:22 -0600)
committerCraig A. Berry <craigberry@mac.com>
Sun, 16 Feb 2014 20:22:25 +0000 (14:22 -0600)
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

index 27f71ff..8b972a4 100644 (file)
@@ -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};
 }