From c2869aead02f2d4de48969f00a9fc4993fd3926c Mon Sep 17 00:00:00 2001 From: Andrew Carter Date: Thu, 20 Aug 2015 13:48:42 -0700 Subject: [PATCH] Fix -ldflags for Go 1.5 Use correct form -X = for Go 1.5 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 29f10abe5..823428fb9 100644 --- a/Makefile +++ b/Makefile @@ -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