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,38 +30,36 @@ 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-
33+
3434 Examines the output of otool -l for these three patterns
35-
35+
3636 cmd LC_ID_DYLIB
3737 cmdsize 160
3838 name /Users/gartung/spack-macdev/opt/spack/darwin-x86_64/clang-7.0.2
3939 -apple/tcl-8.6.5-xfeydlhaojmei6iws2rnxndvriym242k/lib/libtcl8.6.dylib
4040 (offset 24)
41-
41+
4242 cmd LC_LOAD_DYLIB
4343 cmdsize 160
4444 name /Users/gartung/spack-macdev/opt/spack/darwin-x86_64/clang-7.0.2
4545 -apple/zlib-1.2.8-cyvcqvrzlgurne424y55hxvfucvz2354/lib/libz.1.dylib
4646 (offset 24)
47-
47+
4848 cmd LC_RPATH
4949 cmdsize 128
5050 path /Users/gartung/spack-macdev/opt/spack/darwin-x86_64/clang-7.0.2
5151 -apple/xz-5.2.2-d4ecxpuzf2g3ycz3cnj3xmdj7zdnuqwb/lib
5252 (offset 12)
53-
53+
5454 the old install dir in LC_LOAD_DYLIB is replaced with the new install dir
55- using
56- install_name_tool -id newid binary
57-
55+ using install_name_tool -id newid binary
56+
5857 the old install dir in LC_LOAD_DYLIB is replaced with the new install dir
59- using
60- install_name_tool -change old new binary
61-
58+ using install_name_tool -change old new binary
59+
6260 the old install dir in LC_RPATH is replaced with the new install dir using
6361 install_name_tool -rpath old new binary
64-
62+
6563 """
6664 command = which ('otool' )
6765 output = command ("-l" , path_name , output = str , err = str )
You can’t perform that action at this time.
0 commit comments