Ticket #947: word-boundaries.patch

File word-boundaries.patch, 4.1 KB (added by darbelo, 5 years ago)
  • config/init/hints/irix.pm

     
    2121    $conf->data->set( ccflags => $ccflags ); 
    2222 
    2323    my $libs = $conf->data->get('libs'); 
    24     if ( $libs !~ /-lpthread/ ) { 
     24    if ( $libs !~ /-lpthread\b/ ) { 
    2525        $libs .= ' -lpthread'; 
    2626    } 
    2727    $conf->data->set( libs => $libs ); 
  • config/init/hints/solaris.pm

     
    1010    my ( $self, $conf ) = @_; 
    1111 
    1212    my $libs = $conf->data->get('libs'); 
    13     if ( $libs !~ /-lpthread/ ) { 
     13    if ( $libs !~ /-lpthread\b/ ) { 
    1414        $libs .= ' -lpthread'; 
    1515    } 
    1616    if ( $libs !~ /-lrt\b/ ) { 
  • config/init/hints/netbsd.pm

     
    1010    my ( $self, $conf ) = @_; 
    1111 
    1212    my $ccflags = $conf->data->get('ccflags'); 
    13     if ( $ccflags !~ /-pthread/ ) { 
     13    if ( $ccflags !~ /-pthread\b/ ) { 
    1414        $ccflags .= ' -pthread'; 
    1515    } 
    1616    $conf->data->set( ccflags => $ccflags ); 
    1717 
    1818    my $libs = $conf->data->get('libs'); 
    19     if ( $libs !~ /-lpthread/ ) { 
     19    if ( $libs !~ /-lpthread\b/ ) { 
    2020        $libs .= ' -lpthread'; 
    2121    } 
    2222    $conf->data->set( libs => $libs ); 
  • config/init/hints/hpux.pm

     
    1010    my ( $self, $conf ) = @_; 
    1111 
    1212    my $libs = $conf->data->get('libs'); 
    13     if ( $libs !~ /-lpthread/ ) { 
     13    if ( $libs !~ /-lpthread\b/ ) { 
    1414        $libs .= ' -lpthread'; 
    1515    } 
    1616 
  • config/init/hints/dragonfly.pm

     
    1313    my $version   = $conf->option_or_data('VERSION'); 
    1414    my $libs = $conf->data->get('libs'); 
    1515 
    16     $libs .= ' -pthread' unless $libs =~ /pthread/; 
     16    $libs .= ' -pthread' unless $libs =~ /pthread\b/; 
    1717 
    1818    $conf->data->set( 
    1919        libs  => $libs, 
  • config/init/hints/openbsd.pm

     
    1212    my $share_ext = $conf->option_or_data('share_ext'); 
    1313    my $version   = $conf->option_or_data('VERSION'); 
    1414    my $ccflags = $conf->data->get('ccflags'); 
    15     if ( $ccflags !~ /-pthread/ ) { 
     15    if ( $ccflags !~ /-pthread\b/ ) { 
    1616        $ccflags .= ' -pthread'; 
    1717    } 
    1818    $conf->data->set( ccflags => $ccflags ); 
    1919 
    2020    my $libs = $conf->data->get('libs'); 
    21     if ( $libs !~ /-lpthread/ ) { 
     21    if ( $libs !~ /-lpthread\b/ ) { 
    2222        $libs .= ' -lpthread'; 
    2323    } 
    2424    $conf->data->set( 
  • config/init/hints/dec_osf.pm

     
    1111 
    1212    # Tru64 
    1313    my $ccflags = $conf->data->get('ccflags'); 
    14     if ( $ccflags !~ /-pthread/ ) { 
     14    if ( $ccflags !~ /-pthread\b/ ) { 
    1515        $ccflags .= ' -pthread'; 
    1616    } 
    1717    if ( $ccflags !~ /-D_REENTRANT/ ) { 
     
    2424    $conf->data->set( ccflags => $ccflags ); 
    2525 
    2626    my $libs = $conf->data->get('libs'); 
    27     if ( $libs !~ /-lpthread/ ) { 
     27    if ( $libs !~ /-lpthread\b/ ) { 
    2828        $libs .= ' -lpthread'; 
    2929    } 
    3030    $conf->data->set( libs => $libs ); 
     
    3737    } 
    3838 
    3939    my $linkflags = $conf->data->get('linkflags'); 
    40     if ( $linkflags !~ /-expect_unresolved/ ) { 
     40    if ( $linkflags !~ /-expect_unresolved\b/ ) { 
    4141        $linkflags = "-expect_unresolved '*' -O4 -msym -std $linkflags"; 
    4242        $conf->data->set( linkflags => $linkflags ); 
    4343    }