1
0
mirror of https://github.com/rancher/os.git synced 2025-06-27 15:26:50 +00:00

Remove the unnecessary params of 'go build'

This commit is contained in:
niusmallnan 2018-11-07 13:47:56 +08:00
parent 1633698e05
commit 79b405dec4

View File

@ -17,4 +17,4 @@ echo Building $OUTPUT
BUILDDATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') BUILDDATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
CONST="-X github.com/rancher/os/config.Version=${VERSION} -X github.com/rancher/os/config.OsRepo=${OS_REPO} -X github.com/rancher/os/config.BuildDate='${BUILDDATE}'" CONST="-X github.com/rancher/os/config.Version=${VERSION} -X github.com/rancher/os/config.OsRepo=${OS_REPO} -X github.com/rancher/os/config.BuildDate='${BUILDDATE}'"
go build -tags "selinux cgo daemon netgo" -installsuffix netgo -ldflags "$CONST -linkmode external -extldflags -static -s -w" -o ${OUTPUT} go build -ldflags "$CONST -extldflags -static -s -w" -o ${OUTPUT}