|
@@ -149,7 +149,7 @@ LDFLAGS_STATIC=''
|
|
EXTLDFLAGS_STATIC='-static'
|
|
EXTLDFLAGS_STATIC='-static'
|
|
# ORIG_BUILDFLAGS is necessary for the cross target which cannot always build
|
|
# ORIG_BUILDFLAGS is necessary for the cross target which cannot always build
|
|
# with options like -race.
|
|
# with options like -race.
|
|
-ORIG_BUILDFLAGS=( -tags "autogen netgo static_build sqlite_omit_load_extension $DOCKER_BUILDTAGS" -installsuffix netgo )
|
|
|
|
|
|
+ORIG_BUILDFLAGS=( -tags "autogen netgo static_build $DOCKER_BUILDTAGS" -installsuffix netgo )
|
|
# see https://github.com/golang/go/issues/9369#issuecomment-69864440 for why -installsuffix is necessary here
|
|
# see https://github.com/golang/go/issues/9369#issuecomment-69864440 for why -installsuffix is necessary here
|
|
|
|
|
|
# When $DOCKER_INCREMENTAL_BINARY is set in the environment, enable incremental
|
|
# When $DOCKER_INCREMENTAL_BINARY is set in the environment, enable incremental
|
|
@@ -186,14 +186,6 @@ 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 \
|