SQLite is also available in FreeBSD

Docker-DCO-1.1-Signed-off-by: Kato Kazuyoshi <kato.kazuyoshi@gmail.com> (github: kzys)
This commit is contained in:
Kato Kazuyoshi 2014-04-17 00:41:19 +09:00
parent e1e512e2da
commit 92ea101bc4
3 changed files with 10 additions and 2 deletions

View File

@ -117,6 +117,14 @@ if [ "$(uname -s)" = 'FreeBSD' ]; then
LDFLAGS="$LDFLAGS -extld clang"
fi
# If sqlite3.h doesn't exist under /usr/include,
# check /usr/local/include also just in case
# (e.g. FreeBSD Ports installs it under the directory)
if [ ! -e /usr/include/sqlite3.h ] && [ -e /usr/local/include/sqlite3.h ]; then
export CGO_CFLAGS='-I/usr/local/include'
export CGO_LDFLAGS='-L/usr/local/lib'
fi
HAVE_GO_TEST_COVER=
if \
go help testflag | grep -- -cover > /dev/null \

View File

@ -1,4 +1,4 @@
// +build amd64
// +build linux,amd64 freebsd,cgo
package graphdb

View File

@ -1,4 +1,4 @@
// +build !linux !amd64
// +build !linux,!freebsd linux,!amd64 freebsd,!cgo
package graphdb