diff mupdf-source/scripts/jlib.py @ 40:aa33339d6b8a upstream

ADD: MuPDF v1.26.10: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.5.
author Franz Glasner <fzglas.hg@dom66.de>
date Sat, 11 Oct 2025 11:31:38 +0200
parents b50eed0cc0ef
children 71bcc18e306f
line wrap: on
line diff
--- a/mupdf-source/scripts/jlib.py	Sat Oct 11 11:19:58 2025 +0200
+++ b/mupdf-source/scripts/jlib.py	Sat Oct 11 11:31:38 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"
     #log('{sos=} {ld_origin=} {ret=}')