mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Restore DEBUG as DOCKER_DEBUG (removed in #10665), add as make variable
Signed-off-by: Aidan Hobson Sayers <aidanhs@cantab.net>
This commit is contained in:
parent
3401ee13f8
commit
a121ac858e
2 changed files with 4 additions and 1 deletions
1
Makefile
1
Makefile
|
@ -6,6 +6,7 @@
|
||||||
DOCKER_ENVS := \
|
DOCKER_ENVS := \
|
||||||
-e BUILDFLAGS \
|
-e BUILDFLAGS \
|
||||||
-e DOCKER_CLIENTONLY \
|
-e DOCKER_CLIENTONLY \
|
||||||
|
-e DOCKER_DEBUG \
|
||||||
-e DOCKER_EXECDRIVER \
|
-e DOCKER_EXECDRIVER \
|
||||||
-e DOCKER_GRAPHDRIVER \
|
-e DOCKER_GRAPHDRIVER \
|
||||||
-e DOCKER_STORAGE_OPTS \
|
-e DOCKER_STORAGE_OPTS \
|
||||||
|
|
|
@ -122,7 +122,9 @@ fi
|
||||||
|
|
||||||
IAMSTATIC='true'
|
IAMSTATIC='true'
|
||||||
source "$SCRIPTDIR/make/.go-autogen"
|
source "$SCRIPTDIR/make/.go-autogen"
|
||||||
LDFLAGS='-w'
|
if [ -z "$DOCKER_DEBUG" ]; then
|
||||||
|
LDFLAGS='-w'
|
||||||
|
fi
|
||||||
|
|
||||||
LDFLAGS_STATIC='-linkmode external'
|
LDFLAGS_STATIC='-linkmode external'
|
||||||
# Cgo -H windows is incompatible with -linkmode external.
|
# Cgo -H windows is incompatible with -linkmode external.
|
||||||
|
|
Loading…
Reference in a new issue