File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ CLI_DIR=$(realpath $(CURDIR)/../src/github.com/docker/cli)
44ENGINE_DIR =$(realpath $(CURDIR ) /../src/github.com/docker/docker)
55GEN_STATIC_VER =$(shell ./gen-static-ver $(CLI_DIR ) $(VERSION ) )
66HASH_CMD =docker run -v $(CURDIR ) :/sum -w /sum debian:jessie bash hash_files
7+ LDD_RUN =ldd >/dev/null 2>/dev/null
78DIR_TO_HASH: =build/linux
89DOCKER_CLI_GOLANG_IMG =golang:$(GO_VERSION )
910
@@ -44,6 +45,7 @@ static-linux: static-cli static-engine ## create tgz with linux x86_64 client an
4445 mkdir -p build/linux/docker
4546 cp $(CLI_DIR ) /build/docker build/linux/docker/
4647 for f in dockerd containerd ctr containerd-shim containerd-shim-runc-v2 docker-init docker-proxy runc; do \
48+ if $( LDD_RUN) $( ENGINE_DIR) /bundles/binary-daemon/$$ f; then echo " $$ f is not static, exiting..." ; exit 1; fi ; \
4749 cp -L $(ENGINE_DIR ) /bundles/binary-daemon/$$ f build/linux/docker/$$ f; \
4850 done
4951 tar -C build/linux -c -z -f build/linux/docker-$(GEN_STATIC_VER ) .tgz docker
@@ -52,6 +54,7 @@ static-linux: static-cli static-engine ## create tgz with linux x86_64 client an
5254 mkdir -p build/linux/docker-rootless-extras
5355 for f in rootlesskit rootlesskit-docker-proxy dockerd-rootless.sh dockerd-rootless-setuptool.sh vpnkit; do \
5456 if [ -f $(ENGINE_DIR)/bundles/binary-daemon/$$f ]; then \
57+ if $(LDD_RUN) $(ENGINE_DIR)/bundles/binary-daemon/$$f; then echo "$$f is not static, exiting..."; exit 1; fi; \
5558 cp -L $(ENGINE_DIR)/bundles/binary-daemon/$$f build/linux/docker-rootless-extras/$$f; \
5659 fi \
5760 done
You can’t perform that action at this time.
0 commit comments