Mercurial > hgrepos > Python2 > PyMuPDF
diff mupdf-source/scripts/jlib.py @ 12:fdb709369d57
Do not use -z,relro,-z,now on Systems where it is not supported.
This is especially Darwin.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 17 Sep 2025 15:31:57 +0200 |
| parents | 5ab937c03c27 |
| children | 71bcc18e306f |
line wrap: on
line diff
--- a/mupdf-source/scripts/jlib.py Wed Sep 17 12:49:20 2025 +0200 +++ b/mupdf-source/scripts/jlib.py Wed Sep 17 15:31:57 2025 +0200 @@ -2303,10 +2303,11 @@ ret += ' -Wl,-rpath,@loader_path/.' else: ret += " -Wl,-rpath,'$ORIGIN',-z,origin" - # FreeBSD - # Full RELRO - ret += ' -Wl,-z,relro,-z,now' - # Strip - ret += ' -Wl,-s' + if not darwin and (platform.system() != 'Windows'): + # *BSD and Linux + # Full RELRO + ret += ' -Wl,-z,relro,-z,now' + # Strip + ret += ' -Wl,-s' #log('{sos=} {ld_origin=} {ret=}') return ret.strip()
