Ticket #317: rpath.patch

File rpath.patch, 0.8 KB (added by doughera, 13 years ago)

Patch replacing -Wl,-rpath= with a plain -R.

  • config/init/hints/solaris.pm

    old new  
    4040        %gnuc = eval $conf->cc_run() or die "Can't run the test program: $!"; 
    4141        if ( defined $gnuc{__GNUC__} ) { 
    4242            $link = 'g++'; 
    43             unless ($conf->data->get('rpath')) { 
    44                 $conf->data->set( 'rpath', '-Wl,-rpath=' ); 
    45             } 
    4643        } 
    4744        else { 
    4845            $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' ); 
    5249        } 
    5350        $conf->data->set( link => $link ); 
    5451        $conf->data->deltrigger( "cc", "solaris_link" );