Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid flag in pkg-config #56

Closed
lamarios opened this issue Dec 28, 2020 · 1 comment
Closed

invalid flag in pkg-config #56

lamarios opened this issue Dec 28, 2020 · 1 comment

Comments

@lamarios
Copy link

I'm trying to use the go get command but I'm getting the following error:

go get github.com/rthornton128/goncurses
go build github.com/rthornton128/goncurses: invalid flag in pkg-config --libs: -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now

OS: Arch linux
ncurses: ncurses-6.2-1

go version
go version go1.15.6 linux/amd64
@vsakkas
Copy link

vsakkas commented Dec 30, 2020

Here's a quick workaround for this:

export CGO_CFLAGS_ALLOW=".*"
export CGO_LDFLAGS_ALLOW=".*"
go get github.com/rthornton128/goncurses
export CGO_CFLAGS_ALLOW=
export CGO_LDFLAGS_ALLOW=

Reset back the flags for security reasons.

Relevant link: https://github.com/golang/go/wiki/InvalidFlag

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

No branches or pull requests

2 participants