aboutsummaryrefslogtreecommitdiffstats
path: root/community/docker/configurable_buildmode.patch
blob: bc902ba4c26f7eafd1f0c4383a78863537b7b8e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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