File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,36 +30,28 @@ def get_existing_elf_rpaths(path_name, patchelf_executable):
3030def modify_macho_object (path_name , old_dir , new_dir ):
3131 """
3232 Modify MachO binaries by changing rpaths,and id and dependency lib paths.
33-
3433 Examines the output of otool -l for these three patterns
35-
3634 cmd LC_ID_DYLIB
3735 cmdsize 160
3836 name /Users/gartung/spack-macdev/opt/spack/darwin-x86_64/clang-7.0.2
3937 -apple/tcl-8.6.5-xfeydlhaojmei6iws2rnxndvriym242k/lib/libtcl8.6.dylib
4038 (offset 24)
41-
4239 cmd LC_LOAD_DYLIB
4340 cmdsize 160
4441 name /Users/gartung/spack-macdev/opt/spack/darwin-x86_64/clang-7.0.2
4542 -apple/zlib-1.2.8-cyvcqvrzlgurne424y55hxvfucvz2354/lib/libz.1.dylib
4643 (offset 24)
47-
4844 cmd LC_RPATH
4945 cmdsize 128
5046 path /Users/gartung/spack-macdev/opt/spack/darwin-x86_64/clang-7.0.2
5147 -apple/xz-5.2.2-d4ecxpuzf2g3ycz3cnj3xmdj7zdnuqwb/lib
5248 (offset 12)
53-
5449 the old install dir in LC_LOAD_DYLIB is replaced with the new install dir
5550 using install_name_tool -id newid binary
56-
5751 the old install dir in LC_LOAD_DYLIB is replaced with the new install dir
5852 using install_name_tool -change old new binary
59-
6053 the old install dir in LC_RPATH is replaced with the new install dir using
6154 install_name_tool -rpath old new binary
62-
6355 """
6456 command = which ('otool' )
6557 output = command ("-l" , path_name , output = str , err = str )
You can’t perform that action at this time.
0 commit comments