2015-03-03 23:22:06 +00:00
|
|
|
#!/bin/bash
|
2015-03-18 03:17:28 +00:00
|
|
|
set -e
|
2015-03-03 23:22:06 +00:00
|
|
|
|
|
|
|
if [ -z "$DOCKER_CLIENTONLY" ]; then
|
2015-04-14 16:43:33 +00:00
|
|
|
source "${MAKEDIR}/.dockerinit-gccgo"
|
2015-03-25 17:38:17 +00:00
|
|
|
|
2015-03-03 23:22:06 +00:00
|
|
|
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"
|
2015-09-08 18:29:43 +00:00
|
|
|
export EXTLDFLAGS_STATIC=''
|
2015-03-03 23:22:06 +00:00
|
|
|
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
|
2015-04-14 16:43:33 +00:00
|
|
|
source "${MAKEDIR}/gccgo"
|
2015-03-03 23:22:06 +00:00
|
|
|
)
|