Author: chromatic
Date: Sun Aug 17 13:16:35 2008
New Revision: 30282
Modified:
trunk/config/init/hints/solaris.pm
Log:
[config] Fixed Solaris hint probes to respect parallel testing (RT #57900,
Andrew Johnson, Andy Dougherty).
Modified: trunk/config/init/hints/solaris.pm
==============================================================================
--- trunk/config/init/hints/solaris.pm (original)
+++ trunk/config/init/hints/solaris.pm Sun Aug 17 13:16:35 2008
@@ -34,9 +34,9 @@
# Can't call cc_build since we haven't set all the flags yet.
# This should suffice for this test.
my $cc_inc = $conf->data->get('cc_inc');
- Parrot::Configure::Utils::_run_command( "$cc -o test test.c",
- 'test.cco', 'test.cco' )
- and confess "C compiler failed (see test.cco)";
+ Parrot::Configure::Utils::_run_command( "$cc -o test_$$ test_$$.c",
+ "test_$$.cco", "test_$$.cco" )
+ and confess "C compiler failed (see test_$$.cco)";
%gnuc = eval $conf->cc_run() or die "Can't run the test program: $!";
if ( defined $gnuc{__GNUC__} ) {
$link = 'g++';