[PATCH 2/5] go: set LDFLAGS to -lnotmuch in the packages source file

Justus Winter 4winter at informatik.uni-hamburg.de
Wed May 9 04:15:17 PDT 2012


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



More information about the notmuch mailing list