Skip to content
Snippets Groups Projects
Commit b85e0db2 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

handle symlinks in copylib

parent 566d8a8f
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,15 @@ def copylib(args):
if os.path.exists(os.path.join(path, plain_libpath_base)):
f = plain_libpath_base
target_dir = args[1]
target = os.path.join(path, f)
if not os.path.exists(os.path.join(target_dir, f)):
_copylib(args[0], os.path.join(path, f), plain_libpath_base, args[1])
if os.path.islink(target):
link_target = os.path.join(path, os.readlink(target))
if link_target == '/usr/lib/libSystem.B.dylib':
# simply copy over the link to the system library
os.symlink(link_target, os.path.join(target_dir, plain_libpath_base))
return 0
_copylib(args[0], target, plain_libpath_base, args[1])
return 0
if os.environ.has_key('FASTR_RELEASE'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment