This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Only export Perl_alloccopstash under threads.
authorCraig A. Berry <craigberry@mac.com>
Sun, 10 Jun 2012 02:48:22 +0000 (21:48 -0500)
committerCraig A. Berry <craigberry@mac.com>
Sun, 10 Jun 2012 14:33:59 +0000 (09:33 -0500)
It might make more sense for makedef.pl to more carefully examine
embed.fnc for what's a symbol to be exported only under threads and
what's not, but for now, we appear to be maintaining a hard-coded
list of symbols not to export when not under threads, so let's add
Perl_alloccopstash to the list.  Failing to do so breaks the
build on platforms where the linker is literal-minded about what
symbols it's been told to find in the export list.

makedef.pl

index f309efb..ce92ee1 100644 (file)
@@ -358,6 +358,7 @@ unless ($define{'USE_ITHREADS'}) {
                    PL_stashpad
                    PL_stashpadix
                    PL_stashpadmax
+                   Perl_alloccopstash
                    Perl_clone_params_del
                    Perl_clone_params_new
                    Perl_parser_dup