Skip to content

Commit

Permalink
allow openbsd to locate shared libraries by version
Browse files Browse the repository at this point in the history
  • Loading branch information
casaca24 committed May 6, 2022
1 parent 9a29735 commit 5abd57a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core.c/VM.pm6
Expand Up @@ -73,7 +73,6 @@ 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 @@ -92,7 +91,7 @@ class VM does Systemic {
#?endif

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

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

0 comments on commit 5abd57a

Please sign in to comment.