diff --git a/scripts/build/dynbinary b/scripts/build/dynbinary index 3c32ed342e..4feb7e71d8 100755 --- a/scripts/build/dynbinary +++ b/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