adding rpath to all libraries

This commit is contained in:
Thomas Ferreira de Lima 2018-07-16 01:52:51 -04:00
parent e1dcaf469e
commit 8330415b29
1 changed files with 1 additions and 2 deletions

View File

@ -128,8 +128,7 @@ class Config(object):
args = []
if mod[0] == "_":
args += ["-Wl,-dylib", '-Wl,-install_name,@rpath/%s' % self.libname_of(mod)]
else:
args += ['-Wl,-rpath,@loader_path/']
args += ['-Wl,-rpath,@loader_path/']
return args
else:
# this makes the libraries suitable for linking with a path -