This make sense? make's default $(CC) may have no relation to the one Perl was compiled with, so shouldn't we use what knowledge we can get?
Index: Makefile.PL =================================================================== RCS file: /cvsroot/perl-date-time/modules/DateTime.pm/Makefile.PL,v retrieving revision 1.31 diff -u -r1.31 Makefile.PL --- Makefile.PL 24 Jul 2003 03:54:50 -0000 1.31 +++ Makefile.PL 9 Aug 2003 13:13:55 -0000 @@ -31,7 +31,7 @@ close F or no_cc(); my $make = $^O =~ /win32/i ? 'nmake' : 'make'; - system("$make test$Config{obj_ext}") and no_cc(); + system("CC=$Config{cc} $make test$Config{obj_ext}") and no_cc(); if ( -d 'CVS' ) {