mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 17:18:09 +02: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
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 New Issue
Block a user