34 lines
737 B
Diff
34 lines
737 B
Diff
|
Index: hack/make/.dockerinit-gccgo
|
||
|
===================================================================
|
||
|
--- hack/make/.dockerinit-gccgo.orig
|
||
|
+++ hack/make/.dockerinit-gccgo
|
||
|
@@ -1,5 +1,5 @@
|
||
|
#!/bin/bash
|
||
|
-set -e
|
||
|
+set -ex
|
||
|
|
||
|
IAMSTATIC="true"
|
||
|
source "${MAKEDIR}/.go-autogen"
|
||
|
Index: hack/make/gccgo
|
||
|
===================================================================
|
||
|
--- hack/make/gccgo.orig
|
||
|
+++ hack/make/gccgo
|
||
|
@@ -1,5 +1,5 @@
|
||
|
#!/bin/bash
|
||
|
-set -e
|
||
|
+set -ex
|
||
|
|
||
|
BINARY_NAME="docker-$VERSION"
|
||
|
BINARY_EXTENSION="$(binary_extension)"
|
||
|
@@ -17,6 +17,8 @@ go build -compiler=gccgo \
|
||
|
-g
|
||
|
+ -Wl,--add-needed -Wl,--no-as-needed
|
||
|
$EXTLDFLAGS_STATIC
|
||
|
+ -static-libgo
|
||
|
-Wl,--no-export-dynamic
|
||
|
- -ldl
|
||
|
+ -ldl -lselinux -lsystemd
|
||
|
" \
|
||
|
./docker
|
||
|
|