mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 02:40:59 +00:00
Fix -ldflags for Go 1.5
Use correct form -X <name>=<value> for Go 1.5
This commit is contained in:
parent
e791835e6d
commit
c2869aead0
1 changed files with 1 additions and 1 deletions
2
Makefile
2
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue