diff options
author | Stephan Sundermann <stephansundermann@gmail.com> | 2023-10-27 16:02:29 +0200 |
---|---|---|
committer | Stephan Sundermann <stephansundermann@gmail.com> | 2023-10-27 16:02:45 +0200 |
commit | 30498d89f3fb96d07fbbb777becf744d5fb9e4e6 (patch) | |
tree | 439b05bdfc28c9a03cda00f887a8013e00c167fd /tools/depends/target | |
parent | a3012058f92160d3b1ad45aad92f0955e4b14a37 (diff) |
[depends][PIL] Set library suffix instead of loader patching
Diffstat (limited to 'tools/depends/target')
-rw-r--r-- | tools/depends/target/pythonmodule-pil/Makefile | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/depends/target/pythonmodule-pil/Makefile b/tools/depends/target/pythonmodule-pil/Makefile index 4037675e0e..c1384e4fb4 100644 --- a/tools/depends/target/pythonmodule-pil/Makefile +++ b/tools/depends/target/pythonmodule-pil/Makefile @@ -58,6 +58,7 @@ BUILD_OPTS=--plat-name $(OS)-$(CPU) --disable-jpeg2000 --disable-webp --disable- export CC CFLAGS export PYTHONXINCLUDE=$(PREFIX)/include/python$(PYTHON_VERSION) export LDSHARED LDFLAGS PYTHONPATH +export SETUPTOOLS_EXT_SUFFIX=.so all: .installed-$(PLATFORM) @@ -89,9 +90,6 @@ else ifeq ($(OS),darwin_embedded) cd $(PILPATH) && rm -rf Pillow-*.egg else ifeq ($(TARGET_PLATFORM),webos) cd $(PILPATHLIB) && unzip -o $(PILPATH)/Pillow-*.egg && rm -f $(PILPATH)/Pillow-*.egg - cd $(PILPATHLIB)/PIL && \ - sed $(SED_FLAG) -e 's/import sys, pkg_resources,/import sys, /' \ - -re "/__file__/ s|=.*(_imaging.*.so).*$$|= 'lib/python3/PIL/\1'|" _imaging*.py endif touch $@ |