mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-25 07:19:02 +00:00
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:
parent
ca5e361919
commit
96185e1ac0
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
2
third_party/python/BUILD.mk
vendored
2
third_party/python/BUILD.mk
vendored
|
@ -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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue