diff options
author | Jack Lloyd <[email protected]> | 2017-12-01 09:41:28 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-01 09:41:28 -0500 |
commit | ba843d795772f72a4f3ecf9649c9b58f6422b3d3 (patch) | |
tree | cf8f5db867451a255b306ac89ff38e572dd82b9b /configure.py | |
parent | 7e5ce9d4df54da881417bdbf2b9c4329081f10f6 (diff) |
Fix macOS dynamic link
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/configure.py b/configure.py index 10b91dfad..76887a4d1 100755 --- a/configure.py +++ b/configure.py @@ -1328,7 +1328,8 @@ class OsInfo(InfoObject): # pylint: disable=too-many-instance-attributes 'bin_dir': 'bin', 'lib_dir': 'lib', 'doc_dir': 'share/doc', - 'building_shared_supported': 'yes' + 'building_shared_supported': 'yes', + 'so_post_link_command': '', }) if lex.ar_command == 'ar' and lex.ar_options == '': @@ -1371,6 +1372,7 @@ class OsInfo(InfoObject): # pylint: disable=too-many-instance-attributes self.program_suffix = lex.program_suffix self.static_suffix = lex.static_suffix self.target_features = lex.target_features + self.so_post_link_command = lex.so_post_link_command def defines(self, options): r = [] @@ -2179,13 +2181,9 @@ def create_template_vars(source_paths, build_config, options, modules, cc, arch, if options.os == 'darwin' and options.build_shared_lib: # In order that these executables work from the build directory, # we need to change the install names - variables['cli_post_link_cmd'] = \ - 'install_name_tool -change "$(INSTALLED_LIB_DIR)/$(SONAME_ABI)" "@executable_path/$(SONAME_ABI)" $(CLI)' - variables['test_post_link_cmd'] = \ - 'install_name_tool -change "$(INSTALLED_LIB_DIR)/$(SONAME_ABI)" "@executable_path/$(SONAME_ABI)" $(TEST)' + variables['post_link_cmd'] = osinfo.so_post_link_command.format(**variables) else: - variables['cli_post_link_cmd'] = '' - variables['test_post_link_cmd'] = '' + variables['post_link_cmd'] = '' variables.update(MakefileListsGenerator(build_config, options, modules, cc, arch, osinfo).generate()) |