diff mupdf-source/scripts/jlib.py @ 41:71bcc18e306f

MERGE: New upstream PyMuPDF v1.26.5 including MuPDF v1.26.10 BUGS: Needs some additional changes yet. Not yet tested.
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 11 Oct 2025 15:24:40 +0200
parents fdb709369d57 aa33339d6b8a
children
line wrap: on
line diff
--- a/mupdf-source/scripts/jlib.py	Tue Sep 23 10:27:15 2025 +0200
+++ b/mupdf-source/scripts/jlib.py	Sat Oct 11 15:24:40 2025 +0200
@@ -2301,6 +2301,9 @@
             # `install_name_tool -change` to rename internal names to
             # `@rpath/<leafname>`.
             ret += ' -Wl,-rpath,@loader_path/.'
+        elif os.environ.get( 'PYODIDE') == '1':
+            # 2025-09-05: Pyodide now supports rpath.
+            ret += " -Wl,-rpath,'$ORIGIN'"
         else:
             ret += " -Wl,-rpath,'$ORIGIN',-z,origin"
     if not darwin and (platform.system() != 'Windows'):