setup.py updated with correct loading path of Linux (thanks, @atait)

This commit is contained in:
Matthias Koefferlein 2018-07-18 19:11:36 +00:00
parent 64625dcbda
commit 3dd55bdd2a
1 changed files with 5 additions and 1 deletions

View File

@ -127,7 +127,11 @@ class Config(object):
# build path and the loader will fail.
args = []
args += ['-Wl,-soname,' + self.libname_of(mod)]
args += ['-Wl,-rpath,$ORIGIN']
if not '_dbpi' in mod:
loader_path = '$ORIGIN'
else:
loader_path = '$ORIGIN/..'
args += ['-Wl,-rpath,' + loader_path]
return args
def macros(self):