[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 03:36:01 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 - You will get a substitution error when running `go env -w
CGO_LDFLAGS="-g -O2 ${configure.ldflags}"` in bash since
`${configure.ldflags}` is NOT defined in bash.
`${configure.ldflags}` is defined in MacPorts. When you set
`CGO_LDFLAGS="-g -O2 ${configure.ldflags}"`in a Portfile, the environment
variable will be set properly by MacPorts since Macports knows the value
for `${configure.ldflags}`. Bash does not.
--
Ticket URL: <https://trac.macports.org/ticket/68340#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list