Skip to content

Commit

Permalink
strip -pthread from sdl-config --libs when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed May 11, 2014
1 parent 804da18 commit cd1c6fd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/My/Builder.pm
Expand Up @@ -266,6 +266,13 @@ sub set_config_data {
}
}

if ($^O eq 'openbsd') {
my $osver = `uname -r 2>/dev/null`;
if (!$self->notes('perl_libs')->{pthread} || !$osver || $osver >= 5.0) {
$cfg->{libs} =~ s/\s*-l?pthread//g;
}
}

# write config
$self->config_data('additional_cflags', '-I' . $self->get_path('@PrEfIx@/include') . ' ' .
'-I' . $self->get_path('@PrEfIx@/include/smpeg') . ' ' .
Expand Down

0 comments on commit cd1c6fd

Please sign in to comment.