9e5d7d7464
https://github.com/docker/docker-ce/releases/tag/v18.06.1-ce bsc#1102522 - Remove patches that were merged upstream: - bsc1102522-0001-18.06-disable-containerd-CRI-plugin.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=262
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 547870ff2904a75fa3e0ee96fa264d53a81d4c01 Mon Sep 17 00:00:00 2001
|
|
From: Aleksa Sarai <asarai@suse.de>
|
|
Date: Mon, 30 Jul 2018 19:34:01 +1000
|
|
Subject: [PATCH] build: add -buildmode=pie
|
|
|
|
Make all dynbinary builds be position-independent (this adds both
|
|
security benefits and can help with flaky builds on POWER
|
|
architectures).
|
|
|
|
SUSE-Bugs: bsc#1100727
|
|
Signed-off-by: Aleksa Sarai <asarai@suse.de>
|
|
---
|
|
components/cli/scripts/build/dynbinary | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/components/cli/scripts/build/dynbinary b/components/cli/scripts/build/dynbinary
|
|
index 3c32ed342ef7..4feb7e71d852 100755
|
|
--- a/components/cli/scripts/build/dynbinary
|
|
+++ b/components/cli/scripts/build/dynbinary
|
|
@@ -9,6 +9,6 @@ source ./scripts/build/.variables
|
|
|
|
echo "Building dynamically linked $TARGET"
|
|
export CGO_ENABLED=1
|
|
-go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" "${SOURCE}"
|
|
+go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie "${SOURCE}"
|
|
|
|
ln -sf "$(basename "${TARGET}")" build/docker
|
|
--
|
|
2.18.0
|
|
|