--- docker-ce/components/engine/hack/make/.binary.orig	2019-03-16 16:32:00.813516144 +0100
+++ docker-ce/components/engine/hack/make/.binary	2019-03-16 16:32:13.039984202 +0100
@@ -52,7 +52,7 @@
 
 # -buildmode=pie is not supported on Windows and Linux on mips.
 case "$(go env GOOS)/$(go env GOARCH)" in
-	windows/*|linux/mips*)
+	windows/*|linux/mips*|linux/ppc64)
 		;;
 	*)
 		BUILDFLAGS+=( "-buildmode=pie" )
--- docker-ce/components/cli/scripts/build/dynbinary.orig	2019-03-19 23:33:02.723076212 +0100
+++ docker-ce/components/cli/scripts/build/dynbinary	2019-03-19 23:33:16.769301295 +0100
@@ -9,6 +9,6 @@
 
 echo "Building dynamically linked $TARGET"
 export CGO_ENABLED=1
-go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" -buildmode=pie "${SOURCE}"
+go build -o "${TARGET}" -tags pkcs11 --ldflags "${LDFLAGS}" "${SOURCE}"
 
 ln -sf "$(basename "${TARGET}")" build/docker
