Mercurial > hgrepos > Python2 > PyMuPDF
diff setup.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 | 3b13504f9d89 |
line wrap: on
line diff
--- a/setup.py Wed Sep 17 12:49:20 2025 +0200 +++ b/setup.py Wed Sep 17 15:31:57 2025 +0200 @@ -1215,11 +1215,12 @@ compiler_extra += f' {pyodide_flags}' linker_extra += f' {pyodide_flags}' - # FreeBSD: - # Full RELRO - linker_extra += ' -Wl,-z,relro,-z,now' - # Strip - linker_extra += ' -Wl,-s' + if not darwin and (platform.system() != 'Windows'): + # *BSD and Linux + # Full RELRO + linker_extra += ' -Wl,-z,relro,-z,now' + # Strip + linker_extra += ' -Wl,-s' return compiler_extra, linker_extra, includes, defines, optimise, debug, libpaths, libs, libraries,
