Fix -ldflags for Go 1.5

Use correct form -X <name>=<value> for Go 1.5
This commit is contained in:
Andrew Carter 2015-08-20 13:48:42 -07:00 committed by Bjørn Erik Pedersen
parent e791835e6d
commit c2869aead0

View file

@ -6,7 +6,7 @@
COMMIT_HASH=`git rev-parse --short HEAD 2>/dev/null`
BUILD_DATE=`date +%FT%T%z`
LDFLAGS=-ldflags "-X github.com/spf13/hugo/hugolib.CommitHash ${COMMIT_HASH} -X github.com/spf13/hugo/hugolib.BuildDate ${BUILD_DATE}"
LDFLAGS=-ldflags "-X github.com/spf13/hugo/hugolib.CommitHash=${COMMIT_HASH} -X github.com/spf13/hugo/hugolib.BuildDate=${BUILD_DATE}"
all: gitinfo