Skip to content

Commit

Permalink
[config] add word boundary assertions to code that looks at library f…
Browse files Browse the repository at this point in the history
…lags

git-svn-id: https://svn.parrot.org/parrot/branches/pluggable_runcore@40798 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
cotto committed Aug 25, 2009
1 parent f526d78 commit f353678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/init/hints/linux.pm
Expand Up @@ -23,10 +23,10 @@ sub runstep {
# should find g++ in most cases
my $link = $conf->data->get('link') || 'c++';

if ( $libs !~ /-lpthread/ ) {
if ( $libs !~ /-lpthread\b/ ) {
$libs .= ' -lpthread';
}
if ( $libs !~ /-lrt/ ) {
if ( $libs !~ /-lrt\b/ ) {
$libs .= ' -lrt';
}
my $ld_share_flags = $conf->data->get('ld_share_flags');
Expand Down

0 comments on commit f353678

Please sign in to comment.