From 7d180f359539439549bff9f4b7357043da69fbc0 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 13 May 2023 13:26:47 +0200 Subject: [PATCH] Makefile: Adding GOBUILDFLAGS variable. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a4ac0b9..19a755d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ GO=go +GOBUILDFLAGS=-v --buildmode=pie PROGRAM=thalos-server PREFIX=/usr/local BINDIR=$(PREFIX)/bin @@ -10,7 +11,7 @@ CFGDIR=$(PREFIX)/etc build: build/$(PROGRAM) build/$(PROGRAM) : - $(GO) build -o $@ cmd/thalos/main.go + $(GO) build $(GOBUILDFLAGS) -o $@ cmd/thalos/main.go install: build install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)