Ticket #317: rpath.patch
File rpath.patch, 0.8 KB (added by doughera, 13 years ago) |
---|
-
config/init/hints/solaris.pm
old new 40 40 %gnuc = eval $conf->cc_run() or die "Can't run the test program: $!"; 41 41 if ( defined $gnuc{__GNUC__} ) { 42 42 $link = 'g++'; 43 unless ($conf->data->get('rpath')) {44 $conf->data->set( 'rpath', '-Wl,-rpath=' );45 }46 43 } 47 44 else { 48 45 $link =~ s/\bcc\b/CC/; 49 unless ($conf->data->get('rpath')) {50 $conf->data->set( 'rpath', '-R' );51 }46 } 47 unless ($conf->data->get('rpath')) { 48 $conf->data->set( 'rpath', '-R' ); 52 49 } 53 50 $conf->data->set( link => $link ); 54 51 $conf->data->deltrigger( "cc", "solaris_link" );