comparison 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
comparison
equal deleted inserted replaced
11:f704f0a78213 12:fdb709369d57
2301 # `install_name_tool -change` to rename internal names to 2301 # `install_name_tool -change` to rename internal names to
2302 # `@rpath/<leafname>`. 2302 # `@rpath/<leafname>`.
2303 ret += ' -Wl,-rpath,@loader_path/.' 2303 ret += ' -Wl,-rpath,@loader_path/.'
2304 else: 2304 else:
2305 ret += " -Wl,-rpath,'$ORIGIN',-z,origin" 2305 ret += " -Wl,-rpath,'$ORIGIN',-z,origin"
2306 # FreeBSD 2306 if not darwin and (platform.system() != 'Windows'):
2307 # Full RELRO 2307 # *BSD and Linux
2308 ret += ' -Wl,-z,relro,-z,now' 2308 # Full RELRO
2309 # Strip 2309 ret += ' -Wl,-z,relro,-z,now'
2310 ret += ' -Wl,-s' 2310 # Strip
2311 ret += ' -Wl,-s'
2311 #log('{sos=} {ld_origin=} {ret=}') 2312 #log('{sos=} {ld_origin=} {ret=}')
2312 return ret.strip() 2313 return ret.strip()