2016-02-05 10:21:26 +01:00
|
|
|
diff --git a/hack/make/gccgo b/hack/make/gccgo
|
2016-08-30 15:36:05 +02:00
|
|
|
index 54c983e..1c11bbf 100644
|
2016-02-05 10:21:26 +01:00
|
|
|
--- a/hack/make/gccgo
|
|
|
|
+++ b/hack/make/gccgo
|
2016-01-20 19:58:55 +01:00
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
#!/bin/bash
|
|
|
|
-set -e
|
|
|
|
+set -ex
|
2016-08-23 16:44:42 +02:00
|
|
|
|
|
|
|
BINARY_NAME="dockerd-$VERSION"
|
2016-01-20 19:58:55 +01:00
|
|
|
BINARY_EXTENSION="$(binary_extension)"
|
2016-08-30 15:36:05 +02:00
|
|
|
@@ -22,9 +22,11 @@ go build -compiler=gccgo \
|
|
|
|
"${BUILDFLAGS[@]}" \
|
|
|
|
-gccgoflags "
|
2016-08-23 16:44:42 +02:00
|
|
|
-g
|
2016-08-30 15:36:05 +02:00
|
|
|
+ -Wl,--add-needed -Wl,--no-as-needed
|
2016-08-23 16:44:42 +02:00
|
|
|
$EXTLDFLAGS_STATIC
|
2016-08-30 15:36:05 +02:00
|
|
|
+ -static-libgo
|
2016-08-23 16:44:42 +02:00
|
|
|
-Wl,--no-export-dynamic
|
|
|
|
- -ldl
|
2016-08-30 15:36:05 +02:00
|
|
|
+ -ldl -lselinux -lsystemd
|
2016-08-23 16:44:42 +02:00
|
|
|
-pthread
|
|
|
|
" \
|
|
|
|
./cmd/dockerd
|
2016-08-30 15:36:05 +02:00
|
|
|
@@ -37,7 +39,9 @@ go build -compiler=gccgo \
|
|
|
|
"${BUILDFLAGS[@]}" \
|
|
|
|
-gccgoflags "
|
|
|
|
-g
|
|
|
|
+ -Wl,--add-needed -Wl,--no-as-needed
|
|
|
|
$EXTLDFLAGS_STATIC
|
|
|
|
+ -static-libgo
|
|
|
|
-Wl,--no-export-dynamic
|
|
|
|
-ldl
|
|
|
|
-pthread
|
|
|
|
@@ -55,9 +59,11 @@ go build -compiler=gccgo \
|
2016-02-05 10:21:26 +01:00
|
|
|
"${BUILDFLAGS[@]}" \
|
|
|
|
-gccgoflags "
|
2016-01-20 19:58:55 +01:00
|
|
|
-g
|
2016-08-23 16:44:42 +02:00
|
|
|
+ -Wl,--add-needed -Wl,--no-as-needed
|
2016-01-20 19:58:55 +01:00
|
|
|
$EXTLDFLAGS_STATIC
|
2016-08-23 16:44:42 +02:00
|
|
|
+ -static-libgo
|
2016-01-20 19:58:55 +01:00
|
|
|
-Wl,--no-export-dynamic
|
|
|
|
- -ldl
|
|
|
|
+ -ldl -lselinux -lsystemd
|
2016-02-05 10:21:26 +01:00
|
|
|
-pthread
|
2016-01-20 19:58:55 +01:00
|
|
|
" \
|
2016-08-23 16:44:42 +02:00
|
|
|
./cmd/docker
|