Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v15] build: Build mac arm64 binaries with -extldflags=-ld_classic (#…
…42736) * [v15] build: Factor Go LDFLAGS into own make variable Factor out the Go LDFLAGS (the argument to `-ldflags`) into a separate `GO_LDFLAGS` variable so that it can be extended conditionally for certain build scenarios. * [v15] build: Set arm ldflags via GO_LDFLAGS Set the arm-specific ldflags via the new `GO_LDFLAGS` var that was added in 265b58c instead of overriding `BUILDFLAGS`. Without this, the arm ldflags were being overridden when building teleport on CI as that needs to set extra ldflags for the community-licensed build. * [v15] build: Build mac arm64 binaries with -extldflags=-ld_classic Add the flag `-extldflags=-ld_classic` to the Go build command line when building the teleport binaries. This is needed to get around a new issue with the xcode linker on macOS when building enterprise `build/teleport` emitting the error: ld: B/BL out of range -153903124 (max +/-128MB) to '_runtime.memequal' This change has not been added to the enterprise makefile as the vars are propagated when we build enterprise from the OSS makefile.
- Loading branch information