Subject: | PATCH for VMS (obj_ext, and list C files) |
Hello and thanks for Text::Metaphone 2.00.
The following changes were required to Makefile.PL to
get the module to build (and pass it's tests) on VMS.
Replacing ".o" with the object file extension from Config,
and inserting a missing ',' so the C files are listed.
Cheers,
Peter (Stig) Edwards
@@ -27,22 +27,25 @@
FIX_WARN
}
+use Config;
+my $obj_ext=$Config{'obj_ext'};
+
WriteMakefile(
NAME => 'Text::Metaphone',
VERSION_FROM => 'Metaphone.pm',
PREREQ_PM => {
'Test::More' => 0.47
},
- C => ['metaphone_c.c my_memory.c'],
- OBJECT => 'metaphone_c.o my_memory.o Metaphone.o',
+ C => ['metaphone_c.c','my_memory.c'],
+ OBJECT => "metaphone_c$obj_ext my_memory$obj_ext
Metaphone$obj_ext",
);
sub MY::postamble {
-'
-metaphone_c.o: mytypes.h myconsts.h my_memory.o metachar.h metaphone.h
metaphone_c.c
+"
+metaphone_c$obj_ext: mytypes.h myconsts.h my_memory$obj_ext metachar.h
metaphone.h metaphone_c.c
-my_memory.o: mytypes.h myconsts.h my_memory.c my_memory.h
-'
+my_memory$obj_ext: mytypes.h myconsts.h my_memory.c my_memory.h
+"
}