mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #12992 from aidanhs/aphs-easy-debug-build
Allow passing DOCKER_DEBUG= to `make`
This commit is contained in:
commit
75f63499a0
2 changed files with 4 additions and 1 deletions
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.
|
||||
|
|
Loading…
Reference in a new issue