Skip to content

CGO_LDFLAGS_ALLOW as go cmd build flag #33521

@suizman

Description

@suizman

It's really painful to use environment variable to pass allowed CGO flags.
It would be great to be able to pass this stuff as an build flag.

Eg:
go build -cgo-ldflags-allow '.*'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions