mirror of
https://github.com/gravitational/teleport.git
synced 2026-10-30 18:29:21 +08:00
Generate cross-package trampolines on ARM (#16931)
This commit is contained in:
@@ -233,6 +233,8 @@ CGOFLAG_TSH = CGO_ENABLED=1 CGO_LDFLAGS="-Wl,-Bstatic $(STATIC_LIBS_TSH) -Wl,-Bd
|
||||
else ifeq ("$(ARCH)","arm")
|
||||
# ARM builds need to specify the correct C compiler
|
||||
CGOFLAG = CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc
|
||||
# Add -debugtramp=2 to work around 24 bit CALL/JMP instruction offset.
|
||||
BUILDFLAGS = $(ADDFLAGS) -ldflags '-w -s -debugtramp=2' -trimpath
|
||||
else ifeq ("$(ARCH)","arm64")
|
||||
# ARM64 builds need to specify the correct C compiler
|
||||
CGOFLAG = CGO_ENABLED=1 CC=aarch64-linux-gnu-gcc
|
||||
|
||||
Reference in New Issue
Block a user