Subject: | Makefile.PL compiler detection breaks with dmake (Win32 VanillaPerl) |
Makefile.PL compiler detection fails with dmake-4.4-20060206 on Win32
VanillaPerl:
Show quoted text
> perl Makefile.PL
Testing if you have a C compiler
dmake: Error: -- Don't know how to make `test.o'
Changing the logic in the Makefile.PL to this seems to work:
system( "$Config{cc} -o test.o test.c" ) and no_cc();
foreach ( 'test.c', "test.o" )
This might not be more widely compatible (assumes that "-o" is a valid
flag for all compilers) but the existing compiler check already makes
assumptions about the existance of "make".
For even better compatibility, what about using ExtUtils::CBuilder and
"have_compiler()"?