<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/6b82b7641105632c72b648179019dc4283605796">https://github.com/macports/macports-ports/commit/6b82b7641105632c72b648179019dc4283605796</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 6b82b764110 golang PG: Add CPP flags to wrapped compiler scripts
</span>6b82b764110 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 6b82b7641105632c72b648179019dc4283605796
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Apr 20 11:59:22 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    golang PG: Add CPP flags to wrapped compiler scripts
</span>---
 _resources/port1.0/group/golang-1.0.tcl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/golang-1.0.tcl b/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index d745ee9a0f3..e84c11f0fe7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/golang-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -164,7 +164,7 @@ default test.env      ${go_env}
</span> default configure.env ${go_env}
 
 proc go.append_env {} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    global configure.cc configure.cxx configure.ldflags configure.cflags configure.cxxflags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    global configure.cc configure.cxx configure.ldflags configure.cflags configure.cxxflags configure.cppflags
</span>     global os.major build.env workpath
     # Create a wrapper scripts around compiler commands to enforce use of MacPorts flags
     # and to aid use of MacPorts legacysupport library as required.
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -174,7 +174,7 @@ proc go.append_env {} {
</span>             # link to the legacy support library, the ldflags need to be added to the cc and ccx wrappers.
             # To then prevent 'clang linker input unused' errors we must append -Wno-error at the end.
             # Also remove '-static' from compilation options as this is not supported on older systems.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            set flags "${configure.ldflags} \$\{\@\//-static/\} -Wno-error"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            set flags "${configure.cppflags} ${configure.ldflags} \$\{\@\//-static/\} -Wno-error"
</span>             system "echo '#!/bin/bash'                                                                       >  ${workpath}/go_cc_wrap"
             system "echo 'CMD=\"${configure.cc} ${configure.cflags} [get_canonical_archflags cc] ${flags}\"' >> ${workpath}/go_cc_wrap"
             system "echo 'echo \${CMD} ; exec \${CMD}'                                                       >> ${workpath}/go_cc_wrap"
</pre><pre style='margin:0'>

</pre>