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 <mjkeeler7@gmail.com>
This commit is contained in:
R.B. Boyer 2020-06-05 13:21:57 -05:00 committed by GitHub
parent 6b4e321eb0
commit e56cb94304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -236,18 +236,18 @@ jobs:
GOARM: 5 GOARM: 5
CC: arm-linux-gnueabi-gcc CC: arm-linux-gnueabi-gcc
GOARCH: arm 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: - run:
environment: environment:
GOARM: 6 GOARM: 6
CC: arm-linux-gnueabihf-gcc CC: arm-linux-gnueabihf-gcc
GOARCH: arm 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: - run:
environment: environment:
CC: aarch64-linux-gnu-gcc CC: aarch64-linux-gnu-gcc
GOARCH: arm64 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: - store_artifacts:
path: ./pkg/bin path: ./pkg/bin