aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-06-22 13:12:59 +0200
committerSimon Warta <[email protected]>2015-06-22 13:12:59 +0200
commit61fe5f70701b4cab06c9763cc133b111788f8d02 (patch)
tree62ac80cbb85718d0aaf84cc935bf5d66cb66311c /configure.py
parent808bc5edc075a36f190235dc4bdfcea07a53c5df (diff)
Use install_name_tool to change location of botan lib on OSX
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index 888f9e71e..0d459bb66 100755
--- a/configure.py
+++ b/configure.py
@@ -1317,6 +1317,13 @@ def create_template_vars(build_config, options, modules, cc, arch, osinfo):
'with_sphinx': options.with_sphinx
}
+ if options.os == 'darwin':
+ vars['app_post_link_cmd'] = 'install_name_tool -change "/$(SONAME)" "@executable_path/$(SONAME)" $(APP)'
+ vars['test_post_link_cmd'] = 'install_name_tool -change "/$(SONAME)" "@executable_path/$(SONAME)" $(TEST)'
+ else:
+ vars['app_post_link_cmd'] = ''
+ vars['test_post_link_cmd'] = ''
+
gen_makefile_lists(vars, build_config, options, modules, cc, arch, osinfo)
if options.os != 'windows':