Lines Matching refs:rpath
370 rpath = shell('patchelf', '--print-rpath', shlib)
371 rpath = rpath.split(os.path.pathsep)
373 if libdir in rpath:
374 rpath.insert(0, '$ORIGIN')
375 while libdir in rpath:
376 rpath.remove(libdir)
378 rpathold = rpath
379 rpath = []
382 rpath.insert(0, '$ORIGIN')
386 rpath.insert(0, os.path.join('$ORIGIN',libdir_from_petsc))
388 rpath.insert(0, os.path.join('$ORIGIN',pylibdir_from_petsc))
389 if rpath:
390 rpath = os.path.pathsep.join(rpath)
391 shell('patchelf', '--set-rpath', "'%s'" % rpath, shlib)
434 for rpath in ('@loader_path',):
435 if rpath not in runtime_path:
436 shell('install_name_tool', '-add_rpath', rpath, dylib)