aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/python3
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2021-10-09 15:08:38 +1000
committerfuzzard <fuzzard@kodi.tv>2021-10-18 15:28:55 +1000
commitb4ad968d77027901418151be1ebe5ab61a24859d (patch)
tree9e17df8898ab6f5087ef9d9cd342beb86c30d021 /tools/depends/target/python3
parent4d442e17c7a75584bde16e6f99120a924ce69199 (diff)
[tools/depends] utilise Makefile.include vars for python
Create a single version variable for python to remove hardcoded version numbers in multiple dependencies Do the same for the target site-packages folder
Diffstat (limited to 'tools/depends/target/python3')
-rw-r--r--tools/depends/target/python3/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/depends/target/python3/Makefile b/tools/depends/target/python3/Makefile
index 9a908e41be..f724f581a6 100644
--- a/tools/depends/target/python3/Makefile
+++ b/tools/depends/target/python3/Makefile
@@ -34,7 +34,7 @@ CONFIGURE=./configure --prefix=$(PREFIX) \
$(EXTRA_CONFIGURE)
-LIBDYLIB=$(PLATFORM)/libpython3.8.a
+LIBDYLIB=$(PLATFORM)/libpython$(PYTHON_VERSION).a
all: .installed-$(PLATFORM)
@@ -69,12 +69,12 @@ endif
cd $(PLATFORM); $(CONFIGURE)
$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM) $(HOSTPLATFORM) PYTHON_FOR_BUILD=$(NATIVEPREFIX)/bin/python3 CROSS_COMPILE_TARGET=yes libpython3.8.a
+ $(MAKE) -C $(PLATFORM) $(HOSTPLATFORM) PYTHON_FOR_BUILD=$(NATIVEPREFIX)/bin/python3 CROSS_COMPILE_TARGET=yes libpython$(PYTHON_VERSION).a
touch $@
.installed-$(PLATFORM): $(LIBDYLIB)
$(MAKE) -C $(PLATFORM) $(HOSTPLATFORM) PYTHON_FOR_BUILD=$(NATIVEPREFIX)/bin/python3 CROSS_COMPILE_TARGET=yes install
- find $(PREFIX)/lib/python3.8 -type f -name "*.pyc" -delete
+ find $(PREFIX)/lib/python$(PYTHON_VERSION) -type f -name "*.pyc" -delete
touch $(LIBDYLIB)
touch $@