summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2017-01-20 18:34:20 +0100
committerGitHub <noreply@github.com>2017-01-20 18:34:20 +0100
commit369972b1164be38abd6769b79ecc5ad9c73d1b17 (patch)
tree8ad2713e14554cce4e878710588896e5a34006fa /Makefile
parent7e401b9e3993d9b3e4e64ba63d36fbcbdf688430 (diff)
downloadgitea-369972b1164be38abd6769b79ecc5ad9c73d1b17.tar.gz
gitea-369972b1164be38abd6769b79ecc5ad9c73d1b17.zip
Set the ldflags to static value within makefile (#709)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 50ca7c7215..33b187764e 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ BINDATA := modules/{options,public,templates}/bindata.go
STYLESHEETS := $(wildcard public/less/index.less public/less/_*.less)
JAVASCRIPTS :=
-LDFLAGS ?= -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
+LDFLAGS := -X "main.Version=$(shell git describe --tags --always | sed 's/-/+/' | sed 's/^v//')"
TARGETS ?= linux/*,darwin/*,windows/*
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)