Explorar o código

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)
Jessica Frazelle %!s(int64=10) %!d(string=hai) anos
pai
achega
ec1420cc2b
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      hack/make.sh

+ 5 - 1
hack/make.sh

@@ -95,7 +95,11 @@ if [ -z "$DOCKER_CLIENTONLY" ]; then
 fi
 fi
 
 
 # Use these flags when compiling the tests and final binary
 # 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'
 LDFLAGS_STATIC='-linkmode external'
 EXTLDFLAGS_STATIC='-static'
 EXTLDFLAGS_STATIC='-static'
 # ORIG_BUILDFLAGS is necessary for the cross target which cannot always build
 # ORIG_BUILDFLAGS is necessary for the cross target which cannot always build