SHA256
1
0
forked from pool/docker
docker/gcc-go-build-static-libgo.patch
Flavio Castelli 5a40d680c1 - Build docker on PPC and S390x using gcc-go provided by gcc5
* added sysconfig.docker.ppc64le: make docker daemon start on ppc64le
    despite some iptables issues. To be removed soon
  * ignore-dockerinit-checksum.patch: applied only when building with
    gcc-go. Required to workaround a limitation of gcc-go
  * gcc-go-build-static-libgo.patch: used only when building with gcc-go,
    link libgo statically into docker itself.

OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=9
2015-06-05 15:24:58 +00:00

25 lines
744 B
Diff

Index: docker/project/make/.dockerinit
===================================================================
--- docker.orig/project/make/.dockerinit
+++ docker/project/make/.dockerinit
@@ -3,6 +3,7 @@ set -e
# dockerinit still needs to be a static binary, even if docker is dynamic
go build \
+ -gccgoflags="-static-libgo" \
-o "$DEST/dockerinit-$VERSION" \
"${BUILDFLAGS[@]}" \
-ldflags "
Index: docker/project/make/binary
===================================================================
--- docker.orig/project/make/binary
+++ docker/project/make/binary
@@ -12,6 +12,7 @@ if [[ "$(uname -s)" == CYGWIN* ]]; then
fi
go build \
+ -gccgoflags="-static-libgo" \
-o "$DEST/$BINARY_FULLNAME" \
"${BUILDFLAGS[@]}" \
-ldflags "