From 7062ddef5a9166595ebef86b272a74e379843f2b Mon Sep 17 00:00:00 2001 From: Niall Sheridan Date: Wed, 28 Dec 2016 16:10:30 +0000 Subject: Allow building static binaries sqlite uses CGO which prevents the building of statically-linked binaries. This change will omit sqlite support when building a static binary with: CGO_ENABLED=0 go build --ldflags '-extldflags "-static"' --- server/store/sqlite.go | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 server/store/sqlite.go (limited to 'server/store/sqlite.go') diff --git a/server/store/sqlite.go b/server/store/sqlite.go new file mode 100644 index 0000000..a9ff665 --- /dev/null +++ b/server/store/sqlite.go @@ -0,0 +1,5 @@ +// +build cgo + +package store + +import _ "github.com/mattn/go-sqlite3" -- cgit v1.2.3