Mercurial > hgrepos > Python2 > PyMuPDF
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 11:f704f0a78213 | 12:fdb709369d57 |
|---|---|
| 1213 | 1213 |
| 1214 if pyodide: | 1214 if pyodide: |
| 1215 compiler_extra += f' {pyodide_flags}' | 1215 compiler_extra += f' {pyodide_flags}' |
| 1216 linker_extra += f' {pyodide_flags}' | 1216 linker_extra += f' {pyodide_flags}' |
| 1217 | 1217 |
| 1218 # FreeBSD: | 1218 if not darwin and (platform.system() != 'Windows'): |
| 1219 # Full RELRO | 1219 # *BSD and Linux |
| 1220 linker_extra += ' -Wl,-z,relro,-z,now' | 1220 # Full RELRO |
| 1221 # Strip | 1221 linker_extra += ' -Wl,-z,relro,-z,now' |
| 1222 linker_extra += ' -Wl,-s' | 1222 # Strip |
| 1223 linker_extra += ' -Wl,-s' | |
| 1223 | 1224 |
| 1224 return compiler_extra, linker_extra, includes, defines, optimise, debug, libpaths, libs, libraries, | 1225 return compiler_extra, linker_extra, includes, defines, optimise, debug, libpaths, libs, libraries, |
| 1225 | 1226 |
| 1226 | 1227 |
| 1227 def sdist(): | 1228 def sdist(): |
