$OpenBSD: patch-Configure_pl,v 1.1.1.1 2014/05/25 21:49:55 pascal Exp $
--- Configure.pl.orig	Thu May 22 20:46:53 2014
+++ Configure.pl	Fri May 23 23:36:57 2014
@@ -197,6 +197,10 @@ $config{ldflags} = join ' ', @ldflags;
 $config{moarlib} = sprintf $config{lib}, $NAME;
 $config{moardll} = sprintf $config{dll}, $NAME;
 
+if (exists $ENV{'SO_VERSION'}) {
+	$config{moardll} = $config{moardll} . "." . $ENV{'SO_VERSION'};
+}
+
 # setup flags for shared builds
 unless ($args{static}) {
     $config{objflags}  = '@ccdef@MVM_BUILD_SHARED @ccshared@';
