From 476a50769ecd5554c37af79f14eb6cafd843c1e9 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 925d1a47a7..76652302bf 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