go-xmlsec icon indicating copy to clipboard operation
go-xmlsec copied to clipboard

can not build

Open lanwenhong opened this issue 6 years ago • 2 comments

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

lanwenhong avatar Nov 05 '18 06:11 lanwenhong

Temp fix: export CGO_CFLAGS_ALLOW=".*"

schiob avatar Nov 13 '18 01:11 schiob

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.

roelandm avatar Nov 16 '19 19:11 roelandm