Permalink
Browse files

Use pkg-config, instead of assuming where libs and headers are.

  • Loading branch information...
pebbe committed Feb 24, 2013
1 parent dae28c2 commit 2b480d988c9e1c7df9ebe2ce5a773516d330a269
Showing with 6 additions and 6 deletions.
  1. +1 −2 zmq.go
  2. +1 −0 zmq_2_2.go
  3. +1 −2 zmq_2_x.go
  4. +1 −2 zmq_3_x.go
  5. +1 −0 zmq_unix.go
  6. +1 −0 zmq_windows.go
View
3 zmq.go
@@ -18,8 +18,7 @@
package gozmq
/*
-#cgo CFLAGS: -I/usr/local/include
-#cgo LDFLAGS: -L/usr/local/lib -lzmq
+#cgo pkg-config: libzmq
#include <zmq.h>
#include <stdlib.h>
#include <string.h>
View
@@ -19,6 +19,7 @@
package gozmq
/*
+#cgo pkg-config: libzmq
#include <zmq.h>
*/
import "C"
View
@@ -19,8 +19,7 @@
package gozmq
/*
-#cgo CFLAGS: -I/usr/local/include
-#cgo LDFLAGS: -L/usr/local/lib -lzmq
+#cgo pkg-config: libzmq
#include <zmq.h>
#include <stdlib.h>
#include <string.h>
View
@@ -19,8 +19,7 @@
package gozmq
/*
-#cgo CFLAGS: -I/usr/local/include
-#cgo LDFLAGS: -L/usr/local/lib -lzmq
+#cgo pkg-config: libzmq
#include <zmq.h>
#include <stdlib.h>
#include <string.h>
View
@@ -19,6 +19,7 @@
package gozmq
/*
+#cgo pkg-config: libzmq
#include <zmq.h>
*/
import "C"
View
@@ -17,6 +17,7 @@
package gozmq
/*
+#cgo pkg-config: libzmq
#include <zmq.h>
*/
import "C"

0 comments on commit 2b480d9

Please sign in to comment.