<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/d482b64fa15900dbdb67caf52bcf1c12143d2128">https://github.com/macports/macports-ports/commit/d482b64fa15900dbdb67caf52bcf1c12143d2128</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 d482b64fa15 golang PG: Create compiler wrapper scripts with Tcl
</span>d482b64fa15 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit d482b64fa15900dbdb67caf52bcf1c12143d2128
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Tue Apr 27 23:20:09 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    golang PG: Create compiler wrapper scripts with Tcl
</span>---
 _resources/port1.0/group/golang-1.0.tcl | 39 ++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 20 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 e84c11f0fe7..a9dc099925f 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;'>@@ -174,29 +174,28 @@ 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:#e0ffe0;'>+            proc create_wrap { wrap comp flags } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                global workpath
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                set f [ open ${wrap} w 0755 ]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                puts  ${f} "#!/bin/bash"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                puts  ${f} "CMD=\"${comp} ${flags}\""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                puts  ${f} "echo \${CMD}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                puts  ${f} "exec \${CMD}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                close ${f}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            }
</span>             set flags "${configure.cppflags} ${configure.ldflags} \$\{\@\//-static/\} -Wno-error"
<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 'CMD=\"${configure.cc} ${configure.cflags} [get_canonical_archflags cc] ${flags}\"' >> ${workpath}/go_cc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'echo \${CMD} ; exec \${CMD}'                                                       >> ${workpath}/go_cc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "chmod +x ${workpath}/go_cc_wrap"
</span><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 'CMD=\"${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx] ${flags}\"' >> ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'echo \${CMD} ; exec \${CMD}'                                                           >> ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "chmod +x ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo '#!/bin/bash'                                                                              >  ${workpath}/go_objc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'CMD=\"${configure.objc} ${configure.objcflags} [get_canonical_archflags objc] ${flags}\"' >> ${workpath}/go_objc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'echo \${CMD} ; exec \${CMD}'                                                              >> ${workpath}/go_objc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "chmod +x ${workpath}/go_cc_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo '#!/bin/bash'                                                                                    >  ${workpath}/go_objcxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'CMD=\"${configure.objcxx} ${configure.objcxxflags} [get_canonical_archflags objcxx] ${flags}\"' >> ${workpath}/go_objcxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "echo 'echo \${CMD} ; exec \${CMD}'                                                                    >> ${workpath}/go_objcxx_wrap"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            system "chmod +x ${workpath}/go_cxx_wrap"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            set wrapdir ${workpath}/gowrap
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            xinstall -m 755 -d ${wrapdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            create_wrap ${wrapdir}/cc     ${configure.cc}     "${configure.cflags}      [get_canonical_archflags cc]     ${flags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            create_wrap ${wrapdir}/c++    ${configure.cxx}    "${configure.cxxflags}    [get_canonical_archflags cxx]    ${flags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            create_wrap ${wrapdir}/objc   ${configure.objc}   "${configure.objcflags}   [get_canonical_archflags objc]   ${flags}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            create_wrap ${wrapdir}/objc++ ${configure.objcxx} "${configure.objcxxflags} [get_canonical_archflags objcxx] ${flags}"
</span>         }
         build.env-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            "CC=${workpath}/go_cc_wrap" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            "CXX=${workpath}/go_cxx_wrap" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            "OBJC=${workpath}/go_objc_wrap" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            "OBJCXX=${workpath}/go_objcxx_wrap" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "CC=${workpath}/gowrap/cc" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "CXX=${workpath}/gowrap/c++" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "OBJC=${workpath}/gowrap/objc" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            "OBJCXX=${workpath}/gowrap/objc++" \
</span>             "GO_EXTLINK_ENABLED=1" \
             "BOOT_GO_LDFLAGS=-extldflags='${configure.ldflags}'" \
             "CGO_CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
</pre><pre style='margin:0'>

</pre>