Mercurial > hgrepos > Python2 > PyMuPDF
diff setup.py @ 7:5ab937c03c27
Apply full RELRO to all generated binaries.
Also strip the generated binaries.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Tue, 16 Sep 2025 12:37:32 +0200 |
| parents | 1d09e1dec1d9 |
| children | fdb709369d57 |
line wrap: on
line diff
--- a/setup.py Mon Sep 15 16:16:51 2025 +0200 +++ b/setup.py Tue Sep 16 12:37:32 2025 +0200 @@ -1214,6 +1214,12 @@ if pyodide: 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' return compiler_extra, linker_extra, includes, defines, optimise, debug, libpaths, libs, libraries,
