mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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:
parent
e1e512e2da
commit
92ea101bc4
3 changed files with 10 additions and 2 deletions
|
@ -117,6 +117,14 @@ if [ "$(uname -s)" = 'FreeBSD' ]; then
|
||||||
LDFLAGS="$LDFLAGS -extld clang"
|
LDFLAGS="$LDFLAGS -extld clang"
|
||||||
fi
|
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=
|
HAVE_GO_TEST_COVER=
|
||||||
if \
|
if \
|
||||||
go help testflag | grep -- -cover > /dev/null \
|
go help testflag | grep -- -cover > /dev/null \
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// +build amd64
|
// +build linux,amd64 freebsd,cgo
|
||||||
|
|
||||||
package graphdb
|
package graphdb
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// +build !linux !amd64
|
// +build !linux,!freebsd linux,!amd64 freebsd,!cgo
|
||||||
|
|
||||||
package graphdb
|
package graphdb
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue