makedef.pl: Fix to work with -DNO_LOCALE config opt
authorKarl Williamson <khw@cpan.org>
Wed, 6 Feb 2019 18:54:14 +0000 (11:54 -0700)
committerKarl Williamson <khw@cpan.org>
Wed, 6 Feb 2019 18:59:42 +0000 (11:59 -0700)
We shouldn't export non-existent variables

makedef.pl

index b3fc164..e5ee6b9 100644 (file)
@@ -427,7 +427,8 @@ unless ($define{'USE_ITHREADS'}) {
                         );
 }
 
-unless ($define{USE_ITHREADS} || $define{USE_THREAD_SAFE_LOCALE})
+if (      $define{NO_LOCALE}
+    || (! $define{USE_ITHREADS} && ! $define{USE_THREAD_SAFE_LOCALE}))
 {
     ++$skip{$_} foreach qw(
         PL_C_locale_obj