commit 2cd31a0698bea846366e8e153619a108484a1a2a Author: Rahil Bhimjiani Date: Mon Apr 1 09:25:21 2024 +0530 Makefile: softcode `strip`, use it from env var Signed-off-by: Rahil Bhimjiani diff --git a/Makefile b/Makefile index 7d27a4153..3a955c85a 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,7 @@ BUILDAH := buildah SELINUXOPT ?= $(shell test -x /usr/sbin/selinuxenabled && selinuxenabled && echo -Z) SELINUXTYPE=container_runtime_exec_t AS ?= as +STRIP ?= strip GO := go GO_LDFLAGS := $(shell if $(GO) version|grep -q gccgo; then echo "-gccgoflags"; else echo "-ldflags"; fi) @@ -87,7 +88,7 @@ internal/mkcw/embed/entrypoint_amd64.gz: internal/mkcw/embed/entrypoint_amd64 internal/mkcw/embed/entrypoint_amd64: internal/mkcw/embed/entrypoint_amd64.s $(AS) -o $(patsubst %.s,%.o,$^) $^ $(LD) -o $@ $(patsubst %.s,%.o,$^) - strip $@ + $(STRIP) $@ endif