mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Revert "Use code generation to set IAMSTATIC instead of -X"
This reverts commit 3e10b93106.
Conflicts:
.gitignore
hack/make.sh
hack/make/dynbinary
Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
This commit is contained in:
@@ -3,17 +3,6 @@ set -e
|
||||
|
||||
DEST=$1
|
||||
|
||||
: ${IAMSTATIC:=true}
|
||||
|
||||
cat > dockerversion/static.go <<EOF
|
||||
// AUTOGENERATED FILE; see hack/make/binary and hack/make/dynbinary
|
||||
package dockerversion
|
||||
|
||||
func init() {
|
||||
IAMSTATIC = $IAMSTATIC
|
||||
}
|
||||
EOF
|
||||
|
||||
go build \
|
||||
-o "$DEST/docker-$VERSION" \
|
||||
"${BUILDFLAGS[@]}" \
|
||||
|
||||
Reference in New Issue
Block a user