aboutsummaryrefslogtreecommitdiffstats
path: root/community/docker/configurable_buildmode.patch
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-05-27 22:10:27 +0000
committerAriadne Conill <ariadne@dereferenced.org>2020-05-27 22:10:27 +0000
commit5fb44497ae3a81502ee6e3ab967f4199e2c52177 (patch)
tree1bed96ffc10bbb376efaceeb97eac21d2536d484 /community/docker/configurable_buildmode.patch
parent462830307ae011ba094533126675d013ea60ae5d (diff)
downloadaports-5fb44497ae3a81502ee6e3ab967f4199e2c52177.tar.gz
aports-5fb44497ae3a81502ee6e3ab967f4199e2c52177.tar.bz2
aports-5fb44497ae3a81502ee6e3ab967f4199e2c52177.tar.xz
community/docker: fix compilation on mips64
Diffstat (limited to 'community/docker/configurable_buildmode.patch')
-rw-r--r--community/docker/configurable_buildmode.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/community/docker/configurable_buildmode.patch b/community/docker/configurable_buildmode.patch
new file mode 100644
index 0000000000..bc902ba4c2
--- /dev/null
+++ b/community/docker/configurable_buildmode.patch
@@ -0,0 +1,12 @@
+diff --git a/components/cli/scripts/build/dynbinary b/components/cli/scripts/build/dynbinary
+index 4feb7e7..46d910b 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}" -buildmode=pie "${SOURCE}"
++go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=${BUILDMODE:=pie} "${SOURCE}"
+
+ ln -sf "$(basename "${TARGET}")" build/docker