Closed cyrus-mc closed 3 months ago
Please tell me the environment you are trying to build go-yara in. Also, provide a complete minimal reproducer program and the exact error messages you are getting.
@cyrus-mc ping?
@cyrus-mc Since you haven't provided any more information, I'm closing this issue.
According to the documentation there are two steps required to build statically:
yara_static
extdldflags -static
.I have set the build tag at the top of the main package as such:
I then invoke
go build
with-tags=yara_static
and-ldflags '-s -w -extldflags "-static"'
.Building results in multiple errors relating to
yara.Scanner
,yara.NewCompiler
, etc undefined.