Hallo B.,

Am Mittwoch, 19. Juni 2002 um 04:55 schriebst du:

> Michael G Schwern wrote:
>> Does it smoke, explode or spark?  Does it rearrange your furniture in the
>> middle of the night?  :)  What's broken?

> Yes.

> Actually... linking against the perl DLL fails because it is looking for 
>   perl.dll.a instead of just perl.dll.

No, we link against libperl.dll.a all the time, to build perl, to
build modules.  I guess you installed the new MakeMaker on top of perl
5.6.1 which makes problems because I changed the naming schema for the
libraries.  If you want to use 6.x then try to rename the libs,
libperl5.6.1.a is the importlibrary which needs to be called
libperl.dll.a, it should work then (but it is a kludge).

Michael, maybe a check for the perl version should be included in the
relevant part?  In perl-5.6.1 the importlib is called libperl5.6.1.a
without the dll in the suffix.
That was a trick to make MakeMaker work without much tweaking
(there is still libperl.a in Config.pm as the libperl name because
I was lazy and I'm not that good in shell programming).

It should be enough to check if the Perl version is 5.7 or above,
Mr Binkley can you test this?  If you comment the relevant part in
MakeMaker it should work for you because the libperl name in Config.pm
is the name of the perl import library.

Or try s.th. like this:

sub perl_archive {
     if ($Config{useshrplib} eq 'true') {
         my $libperl = '$(PERL_INC)' .'/'. "$Config{libperl}";
         if ($Config{version} >= "5.7.0") { # THIS IS THE FIXED LINE
         $libperl =~ s/a$/dll.a/;
         }                                  # THIS IS THE FIXED LINE
         return $libperl;
     } else {
         return '$(PERL_INC)' .'/'. ("$Config{libperl}" or "libperl.a");
     }
 }



Gerrit
-- 
=^..^=

Reply via email to