mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Add build option to Makefile for removing static compile flags (#3026)
this make it possible to remove one patch file from https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/testing/woodpecker
This commit is contained in:
parent
840fca198e
commit
eefa64e2d4
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -27,7 +27,11 @@ else
|
|||
endif
|
||||
endif
|
||||
|
||||
LDFLAGS := -s -w -extldflags "-static" -X go.woodpecker-ci.org/woodpecker/v2/version.Version=${VERSION}
|
||||
LDFLAGS := -X go.woodpecker-ci.org/woodpecker/v2/version.Version=${VERSION}
|
||||
STATIC_BUILD ?= true
|
||||
ifeq ($(STATIC_BUILD),true)
|
||||
LDFLAGS := -s -w -extldflags "-static" $(LDFLAGS)
|
||||
endif
|
||||
CGO_ENABLED ?= 1 # only used to compile server
|
||||
|
||||
HAS_GO = $(shell hash go > /dev/null 2>&1 && echo "GO" || echo "NOGO" )
|
||||
|
|
Loading…
Reference in a new issue