Skip to content

Conversation

CSharperMantle
Copy link
Member

Export CGO_{C,CXX,LD}FLAGS from their un-prefixed counterparts. This way, we could eliminate duplicated per-package CGO export preambles like:

export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"

See also https://go.dev/src/cmd/cgo/doc.go.

@CSharperMantle CSharperMantle marked this pull request as draft October 1, 2025 14:33
@CSharperMantle CSharperMantle force-pushed the feat-cgo-flags branch 3 times, most recently from 7570c43 to 30a701b Compare October 1, 2025 14:37
@CSharperMantle CSharperMantle marked this pull request as ready for review October 1, 2025 14:38
@CSharperMantle CSharperMantle changed the title feat: export CGO_{C,CXX,LD}FLAGS from un-prefixed counterparts feat: export CGO_{C,CPP,CXX,LD}FLAGS from un-prefixed counterparts Oct 1, 2025
@CSharperMantle
Copy link
Member Author

Merged in bdfcd22.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants