Added the -headerpad_max_install_names switch to LDFLAGS to address an issue reported by the delocate-wheel tool.

https://stackoverflow.com/questions/28324785/install-name-tool-cant-use-change-because-larger-updated-load-commands-do-not
This commit is contained in:
Kazunari Sekigawa 2023-09-26 20:53:19 +09:00
parent 8212b7cefd
commit 36c883dba3
1 changed files with 2 additions and 2 deletions

View File

@ -942,9 +942,9 @@ def Build_pymod(parameters):
try:
ldpath = os.environ['LDFLAGS']
except KeyError:
os.environ['LDFLAGS'] = '-L%s' % addLibPath
os.environ['LDFLAGS'] = '-L%s -headerpad_max_install_names' % addLibPath
else:
os.environ['LDFLAGS'] = '-L%s %s' % (addLibPath, ldpath)
os.environ['LDFLAGS'] = '-L%s %s -headerpad_max_install_names' % (addLibPath, ldpath)
#--------------------------------------------------------------------
# [3] Set different command line parameters for building <pymod>