Merge pull request #39069 from thaJeztah/fix_cross
Fix DOCKER_CROSS being overwritten
This commit is contained in:
commit
ce1f7a186e
1 changed files with 3 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -4,6 +4,9 @@
|
|||
DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //'))
|
||||
export DOCKER_GRAPHDRIVER
|
||||
|
||||
# enable/disable cross-compile
|
||||
DOCKER_CROSS ?= false
|
||||
|
||||
# get OS/Arch of docker engine
|
||||
DOCKER_OSARCH := $(shell bash -c 'source hack/make/.detect-daemon-osarch && echo $${DOCKER_ENGINE_OSARCH}')
|
||||
DOCKERFILE := $(shell bash -c 'source hack/make/.detect-daemon-osarch && echo $${DOCKERFILE}')
|
||||
|
@ -139,8 +142,6 @@ cross: build ## cross build the binaries for darwin, freebsd and\nwindows
|
|||
|
||||
ifdef DOCKER_CROSSPLATFORMS
|
||||
build: DOCKER_CROSS := true
|
||||
else
|
||||
build: DOCKER_CROSS ?= false
|
||||
endif
|
||||
ifeq ($(BIND_DIR), .)
|
||||
build: DOCKER_BUILD_OPTS += --target=dev
|
||||
|
|
Loading…
Reference in a new issue