Skip to content

Commit 28e9138

Browse files
committed
Add note for pkg-config-less static builds
1 parent 5d1982a commit 28e9138

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ export CGO_LDFLAGS="-L${YARA_SRC}/libyara/.libs -lyara"
5858
go install -tags yara_no_pkg_config github.com/hillu/go-yara
5959
```
6060

61+
If _libyara_ has been linked against other libraries (e.g.
62+
_libcrypto_, _libmagic_) and a static build is performed, these
63+
libraries also need to be added to `CGO_LDFLAGS`.
64+
6165
## YARA 4.1.x vs. earlier versions
6266

6367
This version of _go-yara_ can only be used with YARA 4.2 or later.

0 commit comments

Comments
 (0)