Subject: | Compiling under MSWin32 (MSVC) |
Hi Torsten,
When trying to compile Pango under MSWin32 using MSVC6, I've encountered
a problem with LIBS passed to EU::MM.
EU::Depends returns LIBS that looks like that:
LIBS => q[-LC:/bin/dev/perl/site/lib/auto/Glib -lGlib
-LC:/bin/dev/perl/site/lib/auto/Cairo -lCairo [...] -lcairo -lgthread-2.0]
Because Windows filesystem is case-insensitive, -lCairo takes over
-lcairo, leading to wrong linking.
Maybe something should be done with EU::Depends, but this situation can
be worked around in Makefile.PL. Here's changes:
186a187,189
Show quoted text
> my %makefile_vars = $pango->get_makefile_vars;
> $makefile_vars{'LIBS'} =~ s!-L(.*?/auto/.*?)\s+-l(\w+)!-l$1/$2.lib!g
if $^O eq 'MSWin32';
Show quoted text>
199c202
< $pango->get_makefile_vars,
---
Show quoted text> %makefile_vars,
Probably, this should be applied only if $^O eq 'MSWin32', but this may
work for other systems with case-insensitivity too.
--
Serguei Trouchelle