<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cb589c6c5db72902e5667c77b55be7f40878895a">https://github.com/macports/macports-ports/commit/cb589c6c5db72902e5667c77b55be7f40878895a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new cb589c6  MoarVM: don't ignore LDFLAGS
</span>cb589c6 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit cb589c6c5db72902e5667c77b55be7f40878895a
</span>Author: Mojca Miklavec <mojca@macports.org>
AuthorDate: Wed Feb 8 03:22:41 2017 +0100

<span style='display:block; white-space:pre;color:#404040;'>    MoarVM: don't ignore LDFLAGS
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    An upstream patch that makes sure not to ignore LDFLAGS.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    See: https://github.com/MoarVM/MoarVM/issues/472
</span>---
 lang/MoarVM/Portfile                        |  2 ++
 lang/MoarVM/files/patch-build-probe.pm.diff | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/MoarVM/Portfile b/lang/MoarVM/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d3255c9..2b987d2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/MoarVM/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/MoarVM/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -21,6 +21,8 @@ checksums           rmd160  3f0cb18b1f5d8f6da168cd15a6db6be84214a29c \
</span> # conflicts         dyncall libtommath libuv
 conflicts           libtommath
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles          patch-build-probe.pm.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # configure.cflags-append \
 #                   -I${prefix}/include/libtommath
 depends_build       port:perl5 \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/MoarVM/files/patch-build-probe.pm.diff b/lang/MoarVM/files/patch-build-probe.pm.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..5893d33
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/MoarVM/files/patch-build-probe.pm.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,23 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/MoarVM/MoarVM/issues/472
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# https://github.com/MoarVM/MoarVM/commit/fe2cefb15e14865fdc5e7077647fff41e980b3e7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- build/probe.pm.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ build/probe.pm
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -57,7 +57,7 @@ sub compile {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         push @objs, $obj;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    my $command = "$config->{ld} $config->{ldout}$leaf @objs $config->{ldlibs} >$devnull 2>&1";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    my $command = "$config->{ld} $ENV{LDFLAGS} $config->{ldout}$leaf @objs $config->{ldlibs} >$devnull 2>&1";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     system $command
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         and return;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     return 1;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -102,7 +102,8 @@ EOT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     if ($can_compile) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        $command = "$config->{ld} $config->{ldout}$leaf $obj $config->{ldlibs} 2>&1";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  $ENV{LDFLAGS} //= '';
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        $command = "$config->{ld} $ENV{LDFLAGS} $config->{ldout}$leaf $obj $config->{ldlibs} 2>&1";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         $output  = `$command` || $!;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         if ($? >> 8 == 0) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             $can_link = 1;
</span></pre><pre style='margin:0'>

</pre>