From 36c883dba3dcbb16d5a30e93ad943ce6e6fefd50 Mon Sep 17 00:00:00 2001 From: Kazunari Sekigawa Date: Tue, 26 Sep 2023 20:53:19 +0900 Subject: [PATCH] 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 --- macbuild/build4mac.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macbuild/build4mac.py b/macbuild/build4mac.py index 6ed2f9ea0..f72c2f180 100755 --- a/macbuild/build4mac.py +++ b/macbuild/build4mac.py @@ -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