Revert "use code generation for GITCOMMIT/VERSION too"
This reverts commit 85744a35de0e30c2dd6741b833f38ff218c8a3fc. Conflicts: .gitignore hack/make.sh Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle) Upstream-commit: ec1420cc2b228116d4aa9c812bd98fa8acdc1b98 Component: engine
This commit is contained in:
@ -95,7 +95,11 @@ if [ -z "$DOCKER_CLIENTONLY" ]; then
|
||||
fi
|
||||
|
||||
# Use these flags when compiling the tests and final binary
|
||||
LDFLAGS='-w'
|
||||
LDFLAGS='
|
||||
-w
|
||||
-X '$DOCKER_PKG'/dockerversion.GITCOMMIT "'$GITCOMMIT'"
|
||||
-X '$DOCKER_PKG'/dockerversion.VERSION "'$VERSION'"
|
||||
'
|
||||
LDFLAGS_STATIC='-linkmode external'
|
||||
EXTLDFLAGS_STATIC='-static'
|
||||
# ORIG_BUILDFLAGS is necessary for the cross target which cannot always build
|
||||
|
||||
Reference in New Issue
Block a user