aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-05-01 20:06:36 +1000
committerfuzzard <fuzzard@kodi.tv>2022-05-01 20:06:36 +1000
commit15a7b7c1c3bccc494b1faa1df4631a8c6ddc155b (patch)
tree9b281eb74ef146de078d135f8fe5d94b58db679d /tools/depends/target
parent8cea05c45d1369d6e0cd8cba0e31e58534a494ce (diff)
[tools/depends][target] pythonmodules fix arch build for arm64 macos
Diffstat (limited to 'tools/depends/target')
-rw-r--r--tools/depends/target/pythonmodule-pil/Makefile10
-rw-r--r--tools/depends/target/pythonmodule-pycryptodome/Makefile2
2 files changed, 7 insertions, 5 deletions
diff --git a/tools/depends/target/pythonmodule-pil/Makefile b/tools/depends/target/pythonmodule-pil/Makefile
index 2f0df3041c..a012427b81 100644
--- a/tools/depends/target/pythonmodule-pil/Makefile
+++ b/tools/depends/target/pythonmodule-pil/Makefile
@@ -21,10 +21,6 @@ else ifeq ($(OS),darwin_embedded)
PILPATH=$(PREFIX)/share/$(APP_NAME)/addons/script.module.pil
PILPATHLIB=$(PILPATH)/lib
PYTHONPATH=$(PILPATH):$(PYTHON_SITE_PKG)
-
- # Work around an issue with xcode 11 stripping -arch arm64 flags.
- # Not required for xcode 12+, but doesnt hurt either.
- CFLAGS+= -target arm64-apple-darwin
endif
SED_FLAG=-i
@@ -33,6 +29,12 @@ ifeq (darwin, $(findstring darwin, $(BUILD)))
endif
ifeq (darwin, $(findstring darwin, $(HOST)))
+ ifeq ($(CPU),arm64)
+ # Work around an issue with xcode 11 stripping -arch arm64 flags.
+ # Not required for xcode 12+, but doesnt hurt either.
+ CFLAGS+= -target arm64-apple-darwin
+ endif
+
LDSHARED:=$(CC) -bundle -undefined dynamic_lookup
export ZLIB_ROOT=$(SDKROOT)/usr
endif
diff --git a/tools/depends/target/pythonmodule-pycryptodome/Makefile b/tools/depends/target/pythonmodule-pycryptodome/Makefile
index a50d920009..1fa504b0f2 100644
--- a/tools/depends/target/pythonmodule-pycryptodome/Makefile
+++ b/tools/depends/target/pythonmodule-pycryptodome/Makefile
@@ -10,7 +10,7 @@ ifeq ($(OS),android)
endif
ifeq (darwin, $(findstring darwin, $(HOST)))
- ifeq ($(OS),darwin_embedded)
+ ifeq ($(CPU),arm64)
# Work around an issue with xcode 11 stripping -arch arm64 flags.
# Not required for xcode 12+, but doesnt hurt either.
CFLAGS+= -target arm64-apple-darwin