Set the LDFLAGS to -lnotmuch so the resulting go package will be linked with libnotmuch.
Signed-off-by: Justus Winter <4winter at informatik.uni-hamburg.de> --- bindings/go/src/notmuch/notmuch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go index 8faf3bb..86e577c 100644 --- a/bindings/go/src/notmuch/notmuch.go +++ b/bindings/go/src/notmuch/notmuch.go @@ -3,6 +3,8 @@ package notmuch /* +#cgo LDFLAGS: -lnotmuch + #include <stdlib.h> #include <string.h> #include <time.h> -- 1.7.10