Commit d709cba
committed
build: Append existing CFLAGS and LDFLAGS for CGO
Underlying `go build` commands can pass custom `CFLAGS` and `LDFLAGS` to
CGO invocations, which GoPy uses in order to pass some of its own
command-line arguments to builds.
However, there are cases where additional, build-specific parameters may
need to be used (e.g. in the case where we're linking against a static
library which itself links to other dynamic libraries, which aren't set
as options in the packages themselves); this commit respects any existing
uses of the `CGO_CFLAGS` and `CGO_LDFLAGS` environment variables, and
appends their values to ones used internally by GoPy if needed.1 parent 1d7f3a2 commit d709cba
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
238 | 241 | | |
239 | 242 | | |
240 | 243 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
253 | 259 | | |
254 | 260 | | |
255 | 261 | | |
| |||
0 commit comments