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

can not build #19

Open
lanwenhong opened this issue Nov 5, 2018 · 2 comments
Open

can not build #19

lanwenhong opened this issue Nov 5, 2018 · 2 comments

Comments

@lanwenhong
Copy link

build with go version 1.11

then I got this errror

go build github.com/crewjam/go-xmlsec: invalid flag in #cgo CFLAGS: -UXMLSEC_CRYPTO_DYNAMIC_LOADING

@schiob
Copy link

schiob commented Nov 13, 2018

Temp fix:
export CGO_CFLAGS_ALLOW=".*"

@roelandxyz
Copy link

I removed all the CFLAGS and LDFLAGS and only added this:
// #cgo pkg-config: xmlsec1-openssl

You can check this fork for an example: (cgo.go and xmlsec.go)
https://github.com/r03/go-xmlsec

Builds on linux and windows with msys2.

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

3 participants