crewjam / go-xmlsec

golang bindings for xmlsec
BSD 2-Clause "Simplified" License
26 stars 13 forks source link

can not build #19

Open lanwenhong opened 5 years ago

lanwenhong commented 5 years ago

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 commented 5 years ago

Temp fix: export CGO_CFLAGS_ALLOW=".*"

roelandxyz commented 4 years ago

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.