mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-04 00:18:53 +00:00
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:
@@ -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\""
|
||||
|
Reference in New Issue
Block a user