mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-19 20:26:54 +00:00
Merge pull request #9262 from rhatdan/debug
Allow developers to build docker with debuginfo included
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user