Provide way for programs to use CGO with go-compile script if they need to

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-07-31 16:06:53 +01:00
parent 5ea2eaead1
commit 17f5da9fea
2 changed files with 3 additions and 3 deletions

View File

@@ -31,6 +31,6 @@ go test
>&2 echo "go build..."
export CGO_ENABLED=0
[ "${REQUIRE_CGO}" = 1 ] || export CGO_ENABLED=0
go install -buildmode pie -ldflags "-s -w ${ldflags} -extldflags \"-fno-PIC -static\""