----- Original Message ----- 
From: "John Peacock" <[EMAIL PROTECTED]>
.
.
>
> Can you do me a big favor and confirm that this works?
>
> === Makefile.PL
> ==================================================================
> --- Makefile.PL (revision 227)
> +++ Makefile.PL (local)
> @@ -125,7 +129,12 @@
>
>      close F or return 0;
>
> -    system( "$Config{cc} -o test$Config{obj_ext} test.c" ) and return 0;
> +    my $cc = $Config{cc};
> +    if ( $cc =~ /cl(\.exe)?$/ ) { # stupid stupid MSVC compiler
> +       $cc .= ' -c'; # prevent it from calling the linker
> +    }
>
> +    system( "$cc -o test$Config{obj_ext} test.c" ) and return 0;
> +
>      return 1;
>  }
>

Not a problem - that also works fine. (Tested on Windows 2000 with 'cl'
compiler, 'gcc' compiler and no compiler at all - ExtUtils::CBuilder not
installed.)

Cheers,
Rob

Reply via email to