<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/50835e8732401833bb2438becd661008d0b44d87">https://github.com/macports/macports-ports/commit/50835e8732401833bb2438becd661008d0b44d87</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 50835e87324 golang PG: Set CGO_{C,CXX}FLAGS for legacysupport
</span>50835e87324 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 50835e8732401833bb2438becd661008d0b44d87
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sat Apr 17 14:00:45 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    golang PG: Set CGO_{C,CXX}FLAGS for legacysupport
</span>---
 _resources/port1.0/group/golang-1.0.tcl | 11 +++++++----
 1 file changed, 7 insertions(+), 4 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 c1951c52e08..fd2d400d820 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;'>@@ -173,17 +173,20 @@ 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.
         post-extract {
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo '#!/bin/bash'                                                                                      >  ${workpath}/go_cc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'exec ${configure.cc} ${configure.cflags} ${configure.ldflags} \"\$\{\@\//-static/\}\"' -Wno-error >> ${workpath}/go_cc_wrap"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            set flags "${configure.ldflags} \$\{\@\//-static/\} -Wno-error"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "echo '#!/bin/bash'                                       >  ${workpath}/go_cc_wrap"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "echo 'exec ${configure.cc} ${configure.cflags} ${flags}' >> ${workpath}/go_cc_wrap"
</span>             system "chmod +x ${workpath}/go_cc_wrap"
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo '#!/bin/bash'                                                                                         >  ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'exec ${configure.cxx} ${configure.cxxflags} ${configure.ldflags} \"\$\{\@\//-static/\}\"' -Wno-error >> ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "echo '#!/bin/bash'                                          >  ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            system "echo 'exec ${configure.cxx} ${configure.cxxflags} ${flags}' >> ${workpath}/go_cxx_wrap"
</span>             system "chmod +x ${workpath}/go_cxx_wrap"
         }
         build.env-append     "GO_EXTLINK_ENABLED=1" \
                              "GO_LDFLAGS=-extldflags='${configure.ldflags}'" \
                              "BOOT_GO_LDFLAGS=-extldflags='${configure.ldflags}'" \
                              "CGO_LDFLAGS=${configure.cflags} ${configure.ldflags}" \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+                             "CGO_CFLAGS=${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                             "CGO_CXXFLAGS=${configure.cxxflags}" \
</span>                              "CC=${workpath}/go_cc_wrap" \
                              "CXX=${workpath}/go_cxx_wrap"
         configure.env-append ${build.env}
</pre><pre style='margin:0'>

</pre>