mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
ac3388367b
Using "DEST" for our build artifacts inside individual bundlescripts was already well-established convention, but this officializes it by having `make.sh` itself set the variable and create the directory, also handling CYGWIN oddities in a single central place (instead of letting them spread outward from `hack/make/binary` like was definitely on their roadmap, whether they knew it or not; sneaky oddities). Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
21 lines
704 B
Bash
21 lines
704 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -z "$DOCKER_CLIENTONLY" ]; then
|
|
source "${MAKEDIR}/.dockerinit-gccgo"
|
|
|
|
hash_files "$DEST/dockerinit-$VERSION"
|
|
else
|
|
# DOCKER_CLIENTONLY must be truthy, so we don't need to bother with dockerinit :)
|
|
export DOCKER_INITSHA1=""
|
|
fi
|
|
# DOCKER_INITSHA1 is exported so that other bundlescripts can easily access it later without recalculating it
|
|
|
|
(
|
|
export IAMSTATIC="false"
|
|
export EXTLDFLAGS_STATIC_DOCKER=''
|
|
export LDFLAGS_STATIC_DOCKER=''
|
|
export BUILDFLAGS=( "${BUILDFLAGS[@]/netgo /}" ) # disable netgo, since we don't need it for a dynamic binary
|
|
export BUILDFLAGS=( "${BUILDFLAGS[@]/static_build /}" ) # we're not building a "static" binary here
|
|
source "${MAKEDIR}/gccgo"
|
|
)
|