зеркало из https://github.com/microsoft/docker.git
Merge pull request #12992 from aidanhs/aphs-easy-debug-build
Allow passing DOCKER_DEBUG= to `make`
This commit is contained in:
Коммит
75f63499a0
1
Makefile
1
Makefile
|
@ -6,6 +6,7 @@
|
|||
DOCKER_ENVS := \
|
||||
-e BUILDFLAGS \
|
||||
-e DOCKER_CLIENTONLY \
|
||||
-e DOCKER_DEBUG \
|
||||
-e DOCKER_EXECDRIVER \
|
||||
-e DOCKER_EXPERIMENTAL \
|
||||
-e DOCKER_GRAPHDRIVER \
|
||||
|
|
|
@ -128,7 +128,9 @@ fi
|
|||
|
||||
IAMSTATIC='true'
|
||||
source "$SCRIPTDIR/make/.go-autogen"
|
||||
LDFLAGS='-w'
|
||||
if [ -z "$DOCKER_DEBUG" ]; then
|
||||
LDFLAGS='-w'
|
||||
fi
|
||||
|
||||
LDFLAGS_STATIC='-linkmode external'
|
||||
# Cgo -H windows is incompatible with -linkmode external.
|
||||
|
|
Загрузка…
Ссылка в новой задаче