[MacPorts] #68340: go @1.17.13_0: environment variables for olders macOS versions cause bash to print "wrong substitution" and thus compiles fail.
MacPorts
noreply at macports.org
Mon Nov 13 13:53:51 UTC 2023
#68340: go @1.17.13_0: environment variables for olders macOS versions cause bash
to print "wrong substitution" and thus compiles fail.
------------------------+--------------------
Reporter: garoffoli | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: go |
------------------------+--------------------
Comment (by RobK88):
@garoffoli - Here is an example of setting these environment variables in
a Portfile for a `go` program. One would include this code block in the
Portfile:
{{{
pre-build {
# Sierra and earlier
if { ${os.platform} eq "darwin" && ${os.major} < 17 } {
build.args-append GO_EXTLINK_ENABLED="1" \
GO_LDFLAGS="\"-extldflags=${configure.ldflags}\"" \
CGO_LDFLAGS="-g -O2
${configure.ldflags}"
}
}}}
--
Ticket URL: <https://trac.macports.org/ticket/68340#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list