mirror of
https://github.com/appleboy/drone-jenkins.git
synced 2026-06-14 05:12:35 +08:00
fix: Enforce custom LDFLAGS within makefile
This commit is contained in:
@@ -11,7 +11,7 @@ TARGETS ?= linux darwin windows
|
||||
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
|
||||
SOURCES ?= $(shell find . -name "*.go" -type f)
|
||||
TAGS ?=
|
||||
LDFLAGS += -X 'main.Version=$(VERSION)'
|
||||
LDFLAGS ?= -X 'main.Version=$(VERSION)'
|
||||
|
||||
ifneq ($(shell uname), Darwin)
|
||||
EXTLDFLAGS = -extldflags "-static" $(null)
|
||||
|
||||
Reference in New Issue
Block a user