diff options
Diffstat (limited to 'recipes-containers/containerd/containerd-opencontainers/0001-Add-build-option-GODEBUG-1.patch')
-rw-r--r-- | recipes-containers/containerd/containerd-opencontainers/0001-Add-build-option-GODEBUG-1.patch | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/recipes-containers/containerd/containerd-opencontainers/0001-Add-build-option-GODEBUG-1.patch b/recipes-containers/containerd/containerd-opencontainers/0001-Add-build-option-GODEBUG-1.patch deleted file mode 100644 index 8b43c8a0..00000000 --- a/recipes-containers/containerd/containerd-opencontainers/0001-Add-build-option-GODEBUG-1.patch +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | From 84874e47aa2025b8e73df0286c44f3b8a1d9fdb2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | ||
3 | Date: Mon, 2 Sep 2019 16:20:07 +0800 | ||
4 | Subject: [PATCH] Add build option "GODEBUG=1" | ||
5 | |||
6 | Make will generate GDB friendly binary with this build option. | ||
7 | |||
8 | Signed-off-by: Hui Zhu <teawater@hyper.sh> | ||
9 | |||
10 | Upstream-Status: Backport [c5a0c7f491b435e4eb45972903b00e2d8ed46495] | ||
11 | |||
12 | Partly backport and refresh to v1.2.7 | ||
13 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
14 | --- | ||
15 | src/import/Makefile | 8 ++++++-- | ||
16 | 1 file changed, 6 insertions(+), 2 deletions(-) | ||
17 | |||
18 | Index: git/src/import/Makefile | ||
19 | =================================================================== | ||
20 | --- git.orig/src/import/Makefile 2020-10-12 08:09:41.638977052 -0700 | ||
21 | +++ git/src/import/Makefile 2020-10-12 08:10:49.783074373 -0700 | ||
22 | @@ -72,6 +72,10 @@ | ||
23 | COMMANDS=ctr containerd containerd-stress | ||
24 | MANPAGES=ctr.8 containerd.8 containerd-config.8 containerd-config.toml.5 | ||
25 | |||
26 | +ifndef GODEBUG | ||
27 | + EXTRA_LDFLAGS += -s -w | ||
28 | +endif | ||
29 | + | ||
30 | ifdef BUILDTAGS | ||
31 | GO_BUILDTAGS = ${BUILDTAGS} | ||
32 | endif | ||