push(@conditional_params, 'DEFINE' => '-DHAS_PPPORT_H');
}
+my $prereqs;
+
+if(!$ENV{PERL_CORE}) {
+ $prereqs = {
+ 'threads' => 0,
+ 'XSLoader' => 0,
+ };
+}
# Create Makefile
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') ?
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
*/