Merge pull request #9262 from rhatdan/debug

Allow developers to build docker with debuginfo included
This commit is contained in:
Michael Crosby 2014-11-25 14:21:00 -08:00
commit 93be7c0e52

View file

@ -96,10 +96,14 @@ fi
# Use these flags when compiling the tests and final binary
LDFLAGS='
-w
-X '$DOCKER_PKG'/dockerversion.GITCOMMIT "'$GITCOMMIT'"
-X '$DOCKER_PKG'/dockerversion.VERSION "'$VERSION'"
'
if [ -z "$DEBUG" ]; then
LDFLAGS="-w $LDFLAGS"
fi
LDFLAGS_STATIC='-linkmode external'
# Cgo -H windows is incompatible with -linkmode external.
if [ "$(go env GOOS)" == 'windows' ]; then