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

fix linux CGO flags for go 1.10

Open jasonhancock opened this issue 7 years ago • 3 comments

Building on linux with go 1.10 leads to:

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

jasonhancock avatar Feb 22 '18 17:02 jasonhancock

As a workaround:

CGO_CFLAGS_ALLOW='-w|-UXMLSEC_CRYPTO_DYNAMIC_LOADING' go build -o /tmp/foo

jasonhancock avatar Feb 22 '18 18:02 jasonhancock

github.com/<username>/<repo_name>/vendor/github.com/crewjam/go-xmlsec: invalid flag in #cgo CFLAGS: -UXMLSEC_CRYPTO_DYNAMIC_LOADING

Am getting this error. Can anyone please help?

avvari-da avatar May 21 '19 07:05 avvari-da

@dheeraj2dj Other issue provides a temporary workaround for this. https://github.com/crewjam/go-xmlsec/issues/19

savp-RP avatar May 22 '19 05:05 savp-RP