<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/92beda5b6ad5cba55eb52c5db9f5900c8dd2f31c">https://github.com/macports/macports-ports/commit/92beda5b6ad5cba55eb52c5db9f5900c8dd2f31c</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 92beda5b6ad golang PG: Always set some GO environment variables
</span>92beda5b6ad is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 92beda5b6ad5cba55eb52c5db9f5900c8dd2f31c
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Sat Apr 17 16:36:25 2021 +0100
<span style='display:block; white-space:pre;color:#404040;'> golang PG: Always set some GO environment variables
</span>---
_resources/port1.0/group/golang-1.0.tcl | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 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 fd2d400d820..87251946a04 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;'>@@ -148,7 +148,12 @@ default depends_build port:go
</span> set gopath ${workpath}/gopath
default worksrcdir {gopath/src/${go.package}}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-set go_env {GOPATH=${gopath} GOARCH=${goarch} GOOS=${goos} CC=${configure.cc} CXX=${configure.cxx} GOPROXY=off GO111MODULE=off}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set go_env {GOPATH=${gopath} GOARCH=${goarch} GOOS=${goos} GOPROXY=off GO111MODULE=off \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC=${configure.cc} CXX=${configure.cxx} FC=${configure.fc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CGO_CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CGO_CXXFLAGS=${configure.cxxflags} [get_canonical_archflags cxx]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CGO_LDFLAGS=${configure.cflags} ${configure.ldflags} [get_canonical_archflags ld]" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "GO_LDFLAGS=-extldflags='${configure.ldflags} [get_canonical_archflags ld]'" }
</span>
default build.cmd {${go.bin} build}
default build.args ""
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -174,19 +179,15 @@ proc go.append_env {} {
</span> # To then prevent 'clang linker input unused' errors we must append -Wno-error at the end.
post-extract {
set flags "${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 'exec ${configure.cc} ${configure.cflags} ${flags}' >> ${workpath}/go_cc_wrap"
</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} [get_canonical_archflags cc] ${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} ${flags}' >> ${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} [get_canonical_archflags cxx] ${flags}' >> ${workpath}/go_cxx_wrap"
</span> system "chmod +x ${workpath}/go_cxx_wrap"
}
build.env-append "GO_EXTLINK_ENABLED=1" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- "GO_LDFLAGS=-extldflags='${configure.ldflags}'" \
</span> "BOOT_GO_LDFLAGS=-extldflags='${configure.ldflags}'" \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- "CGO_LDFLAGS=${configure.cflags} ${configure.ldflags}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "CGO_CFLAGS=${configure.cflags}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "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>