Skip to content

Commit

Permalink
Merge pull request #2530 from mornfall/fix-openbsd-libs
Browse files Browse the repository at this point in the history
Ignore shared library versions on OpenBSD.
  • Loading branch information
AlexDaniel committed Dec 11, 2018
2 parents 890d628 + 5603128 commit 3131700
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/VM.pm6
Expand Up @@ -55,6 +55,7 @@ class VM does Systemic {
method platform-library-name(IO::Path $library, Version :$version) {
my int $is-win = Rakudo::Internals.IS-WIN;
my int $is-darwin = self.osname eq 'darwin';
my int $is-openbsd = self.osname eq 'openbsd';

my $basename = $library.basename;
my int $full-path = $library ne $basename;
Expand All @@ -73,7 +74,7 @@ class VM does Systemic {
#?endif

$platform-name ~= '.' ~ $version
if $version.defined and nqp::iseq_i(nqp::add_i($is-darwin,$is-win),0);
if $version.defined and nqp::iseq_i(nqp::add_i(nqp::add_i($is-darwin,$is-win),$is-openbsd),0);

$full-path
?? $dirname.IO.add($platform-name).absolute
Expand Down

0 comments on commit 3131700

Please sign in to comment.