Fix -ldflags for Go 1.5
authorAndrew Carter <ascarter@icloud.com>
Thu, 20 Aug 2015 20:48:42 +0000 (13:48 -0700)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 21 Aug 2015 07:14:15 +0000 (09:14 +0200)
Use correct form -X <name>=<value> for Go 1.5

Makefile

index 29f10abe544cd44aadb47d0e9f528a4c26776244..823428fb9dd0a23fc22af7199c76799987c29a1e 100644 (file)
--- 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