Skip to content

Commit

Permalink
cgo: use cgo directives for goinstall
Browse files Browse the repository at this point in the history
  • Loading branch information
str1ngs authored and feyeleanor committed May 20, 2011
1 parent 97f437d commit 504a1a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ CGOFILES=\
progress.go

ifeq ($(GOOS),darwin)
CGO_LDFLAGS=/usr/lib/libsqlite3.0.dylib
#CGO_LDFLAGS=/usr/lib/libsqlite3.0.dylib
else
CGO_LDFLAGS=-lsqlite3
#CGO_LDFLAGS=-lsqlite3
endif

include $(GOROOT)/src/Make.pkg
3 changes: 2 additions & 1 deletion sqlite3.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package sqlite3

// #cgo LDFLAGS: -lsqlite3
// #include <sqlite3.h>
import "C"

Expand Down Expand Up @@ -39,4 +40,4 @@ type Value struct {

type Blob struct {
cptr *C.sqlite3_blob
}
}

0 comments on commit 504a1a2

Please sign in to comment.