Merge pull request #9262 from rhatdan/debug

Allow developers to build docker with debuginfo included
Upstream-commit: 93be7c0e52894dcb7a71196a699f41bb24395d8e
Component: engine
This commit is contained in:
Michael Crosby
2014-11-25 14:21:00 -08:00
+5 -1
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