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:
parent
6b4e321eb0
commit
e56cb94304
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue