2016-02-05 10:21:26 +01:00
|
|
|
diff --git a/hack/make/gccgo b/hack/make/gccgo
|
|
|
|
index 878c814..84b7f69 100644
|
|
|
|
--- 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-02-05 10:21:26 +01:00
|
|
|
|
2016-01-20 19:58:55 +01:00
|
|
|
BINARY_NAME="docker-$VERSION"
|
|
|
|
BINARY_EXTENSION="$(binary_extension)"
|
2016-02-05 10:21:26 +01:00
|
|
|
@@ -16,9 +16,11 @@ go build -compiler=gccgo \
|
|
|
|
"${BUILDFLAGS[@]}" \
|
|
|
|
-gccgoflags "
|
2016-01-20 19:58:55 +01:00
|
|
|
-g
|
2016-02-05 10:21:26 +01:00
|
|
|
+ -Wl,--add-needed -Wl,--no-as-needed
|
2016-01-20 19:58:55 +01:00
|
|
|
$EXTLDFLAGS_STATIC
|
2016-02-05 10:21:26 +01: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
|
|
|
" \
|
|
|
|
./docker
|