From f08eb16d0bda7dc66a40ebd4562bdea6b2b0a44e Mon Sep 17 00:00:00 2001 From: Gontier Julien Date: Thu, 24 Aug 2023 17:34:20 +0200 Subject: [PATCH] Add ldflags Signed-off-by: Gontier Julien --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e65c210..eb70f64 100644 --- a/Makefile +++ b/Makefile @@ -3,9 +3,9 @@ PREFIX = /usr/local ifeq ($(GOROOT),) -GOBUILD = go build +GOBUILD = go build -ldflags "-s -w" else -GOBUILD = $(GOROOT)/bin/go build +GOBUILD = $(GOROOT)/bin/go build -ldflags "-s -w" endif ifeq ($(shell uname),Darwin)