From fed7489a37566ee97862c62a48b0a0b6cd57a85b Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" Date: Fri, 5 Jun 2020 13:21:57 -0500 Subject: [PATCH] Use linkmode=external for the arm builds (#8029) This gets around some issues regarding too large plt offsets when compiling with CGO Co-authored-by: Matt Keeler --- .circleci/config.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9786d5d4d2..4dc006c072 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -236,18 +236,18 @@ jobs: GOARM: 5 CC: arm-linux-gnueabi-gcc GOARCH: arm - command: go build -o ./pkg/bin/linux_armel/consul -ldflags="${GOLDFLAGS}" + command: go build -o ./pkg/bin/linux_armel/consul -ldflags="-linkmode=external ${GOLDFLAGS}" - run: environment: GOARM: 6 CC: arm-linux-gnueabihf-gcc GOARCH: arm - command: go build -o ./pkg/bin/linux_armhf/consul -ldflags="${GOLDFLAGS}" + command: go build -o ./pkg/bin/linux_armhf/consul -ldflags="-linkmode=external ${GOLDFLAGS}" - run: environment: CC: aarch64-linux-gnu-gcc GOARCH: arm64 - command: go build -o ./pkg/bin/linux_aarch64/consul -ldflags="${GOLDFLAGS}" + command: go build -o ./pkg/bin/linux_aarch64/consul -ldflags="-linkmode=external ${GOLDFLAGS}" - store_artifacts: path: ./pkg/bin