blob: 0ca0a6602a7db393781ab8c0e6b1e9d7d062cc13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
commit 2cd31a0698bea846366e8e153619a108484a1a2a
Author: Rahil Bhimjiani <me@rahil.rocks>
Date: Mon Apr 1 09:25:21 2024 +0530
Makefile: softcode `strip`, use it from env var
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
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
|