Fix MODE=aarch64 cross-compiling

This change fixes a regression that happened some time ago when building
for AARCH64 using the vendored toolchain rather than cosmocc. The errors
that would show up `Relocations in generic ELF (EM: 62)` have been fixed
This commit is contained in:
Justine Tunney 2023-11-28 22:31:51 -08:00
parent ca5e361919
commit 96185e1ac0
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 3 additions and 1 deletions

View file

@ -92,6 +92,8 @@ ARCH = x86_64
HOSTS ?= freebsd rhel7 xnu win10 openbsd netbsd HOSTS ?= freebsd rhel7 xnu win10 openbsd netbsd
endif endif
ZIPOBJ_FLAGS += -a$(ARCH)
ifeq ($(PREFIX),) ifeq ($(PREFIX),)
ifeq ($(USE_SYSTEM_TOOLCHAIN),) ifeq ($(USE_SYSTEM_TOOLCHAIN),)
ifeq ($(ARCH),x86_64) ifeq ($(ARCH),x86_64)

View file

@ -4193,7 +4193,7 @@ $(THIRD_PARTY_PYTHON_HELLO_OBJS): private PYFLAGS += -C2 -m
# this directory entry is at the tip of the tree # this directory entry is at the tip of the tree
# therefore building it requires special care # therefore building it requires special care
o/$(MODE)/third_party/python/Lib/.zip.o: third_party/python/.python o/$(MODE)/third_party/python/Lib/.zip.o: third_party/python/.python
@$(COMPILE) -wAZIPOBJ $(ZIPOBJ) -C2 $(OUTPUT_OPTION) third_party/python/.python @$(COMPILE) -wAZIPOBJ $(ZIPOBJ) -a$(ARCH) -C2 $(OUTPUT_OPTION) third_party/python/.python
# these need to be explictly defined because landlock make won't sandbox # these need to be explictly defined because landlock make won't sandbox
# prerequisites with a trailing slash. # prerequisites with a trailing slash.