summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorDown Thomas <downthomas@yahoo.com>2019-12-08 19:38:27 -0500
committerder richter <der.richter@gmx.de>2019-12-15 12:33:25 +0100
commit698a6a27473dfd2826b2726ad535764f5ebc2623 (patch)
tree5aa333b7bb14f045cc1cc617274195affd5f47f6 /etc
parent2dbe33ce838852fb5e16449b21cf438e7e1f2027 (diff)
downloadmpv-698a6a27473dfd2826b2726ad535764f5ebc2623.tar.bz2
mpv-698a6a27473dfd2826b2726ad535764f5ebc2623.tar.xz
osxbundle: simplify process_libraries() to eliminate leafs()
Instead of traversing across leafs() which can lead to an infinite loop issue with cross-linked libraries, use the dictionary (libs_dict) created by libraries() to create a set (libs_set) of every unique library. Every value in libs_dict is also a key in libs_dict, so every unique library linked to mpv will be a key in libs_dict. Use set() on libs_dict to return a set of the keys from libs_dict, and remove binary from the set so that a duplicate of the binary is not added to the libs directory. Iterate over libs_set to bundle dylibs while using the libs_dict to determine which install_names to change.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions