mirror of https://github.com/docker/cli.git
Merge pull request #1242 from cyphar/buildmode-pie
build: add -buildmode=pie
This commit is contained in:
commit
40650cfbd5
|
@ -9,6 +9,6 @@ source ./scripts/build/.variables
|
||||||
|
|
||||||
echo "Building dynamically linked $TARGET"
|
echo "Building dynamically linked $TARGET"
|
||||||
export CGO_ENABLED=1
|
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
|
ln -sf "$(basename "${TARGET}")" build/docker
|
||||||
|
|
Loading…
Reference in New Issue