Skip to content

Commit

Permalink
pass --disable-pthreads to SDLs configure
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed May 11, 2014
1 parent cd1c6fd commit bd35cbb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions inc/My/Builder/Unix.pm
Expand Up @@ -166,6 +166,13 @@ sub _get_configure_cmd {
$extra .= ' --disable-audio';
}

if ($pack eq 'SDL' && $^O eq 'openbsd') {
my $osver = `uname -r 2>/dev/null`;
if (!$self->notes('perl_libs')->{pthread} || !$osver || $osver >= 5.0) {
$extra .= ' --disable-pthreads';
}
}

if($pack =~ /^SDL_/) {
$extra .= " --with-sdl-prefix=$escaped_prefixdir";
}
Expand Down

0 comments on commit bd35cbb

Please sign in to comment.