ports/lang/moarvm/patches/patch-Configure_pl

15 lines
463 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: Configure.pl
--- Configure.pl.orig
+++ Configure.pl
@@ -493,6 +493,10 @@ if (not $args{static} and $config{prefix} ne '/usr') {
$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@';