Browse code

Do not default to external linking on arm, i386

Reverts https://github.com/docker/docker/pull/18197

This was a workaround before Go 1.6, not required any more.

cc @nalind @Govinda-Fichtner

Signed-off-by: Justin Cormack <justin.cormack@docker.com>

Justin Cormack authored on 2016/07/20 19:21:26
Showing 1 changed files
... ...
@@ -20,22 +20,6 @@ if [ "$(go env GOOS)/$(go env GOARCH)" != "$(go env GOHOSTOS)/$(go env GOHOSTARC
20 20
 	esac
21 21
 fi
22 22
 
23
-if [ "$(go env GOOS)" == "linux" ] ; then
24
-	case "$(go env GOARCH)" in
25
-		arm*|386)
26
-			# linking for Linux on arm or x86 needs external linking to avoid
27
-			# https://github.com/golang/go/issues/9510 until we move to Go 1.6
28
-			if [ "$IAMSTATIC" == "true" ] ; then
29
-				export EXTLDFLAGS_STATIC="$EXTLDFLAGS_STATIC -zmuldefs"
30
-				export LDFLAGS_STATIC_DOCKER="$LDFLAGS_STATIC -extldflags \"$EXTLDFLAGS_STATIC\""
31
-
32
-			else
33
-				export LDFLAGS="$LDFLAGS -extldflags -zmuldefs"
34
-			fi
35
-			;;
36
-	esac
37
-fi
38
-
39 23
 if [ "$IAMSTATIC" == "true" ] && [ "$(go env GOHOSTOS)" == "linux" ]; then
40 24
 	if  [ "${GOOS}/${GOARCH}" == "darwin/amd64" ]; then
41 25
 		export CGO_ENABLED=1