summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2006-10-21 18:16:53 +0000
committerSteve Peters <steve@fisharerojo.org>2006-10-21 18:16:53 +0000
commit12b31bedfd2f422eff75009215acbc2ee0cc3fa6 (patch)
tree6882cf4415ea45b370c307d733887b2868f66edb /ext
parentea17c9b657409ab87569389225ef974ae51ca023 (diff)
downloadperl-12b31bedfd2f422eff75009215acbc2ee0cc3fa6.tar.gz
Changes for threads::shared to all building with g++.
p4raw-id: //depot/perl@29072
Diffstat (limited to 'ext')
-rwxr-xr-xext/threads/shared/Makefile.PL13
-rw-r--r--ext/threads/shared/shared.xs8
2 files changed, 13 insertions, 8 deletions
diff --git a/ext/threads/shared/Makefile.PL b/ext/threads/shared/Makefile.PL
index b9f594456b..beccf25529 100755
--- a/ext/threads/shared/Makefile.PL
+++ b/ext/threads/shared/Makefile.PL
@@ -61,6 +61,14 @@ if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H');
}
+my $prereqs;
+
+if(!$ENV{PERL_CORE}) {
+ $prereqs = {
+ 'threads' => 0,
+ 'XSLoader' => 0,
+ };
+}
# Create Makefile
WriteMakefile(
@@ -71,10 +79,7 @@ WriteMakefile(
'PM' => {
'shared.pm' => '$(INST_LIBDIR)/shared.pm',
},
- 'PREREQ_PM' => {
- 'threads' => 0,
- 'XSLoader' => 0,
- },
+ 'PREREQ_PM' => $prereqs,
'INSTALLDIRS' => 'perl',
((ExtUtils::MakeMaker->VERSION() lt '6.25') ?
diff --git a/ext/threads/shared/shared.xs b/ext/threads/shared/shared.xs
index 955874a487..25fdec6018 100644
--- a/ext/threads/shared/shared.xs
+++ b/ext/threads/shared/shared.xs
@@ -318,10 +318,10 @@ MGVTBL sharedsv_userlock_vtbl = {
the shared thing.
*/
-MGVTBL sharedsv_scalar_vtbl; /* Scalars have this vtable */
-MGVTBL sharedsv_array_vtbl; /* Hashes and arrays have this - like 'tie' */
-MGVTBL sharedsv_elem_vtbl; /* Elements of hashes and arrays have this
- _AS WELL AS_ the scalar magic:
+extern MGVTBL sharedsv_scalar_vtbl; /* Scalars have this vtable */
+extern MGVTBL sharedsv_array_vtbl; /* Hashes and arrays have this - like 'tie' */
+extern MGVTBL sharedsv_elem_vtbl; /* Elements of hashes and arrays have this
+ _AS WELL AS_ the scalar magic:
The sharedsv_elem_vtbl associates the element with the array/hash and
the sharedsv_scalar_vtbl associates it with the value
*/