Overview
| Artifact ID: | 98b267a8ad6b0a4638a22795930f07bf7b472ef8585ae5bda2ce6ad16682c894 |
|---|---|
| Ticket: | 113be1991e7262479a1843f3924540d7a08d8a88
zipfs on mac |
| User & Date: | marc_culler on 2021-01-22 16:33:19 |
Changes
- icomment:
I really don't understand your invocation of install_name_tool. You seem to be trying to change the "identification name" of the .dylib file, not the load path for any of the shared libraries that it depends upon. To do that you are supposed to use the -id option. I am able to change the id of the Tcl library that I built using the standard make -C macosx command. The library dependencies of that Tcl library are all system libraries, for which a static global path should be fine. They are: /usr/lib/libz.1.dylib /usr/lib/libSystem.B.dylib /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation I can't imagine why you would want to change any of those, which is all that can be done with the -change option. I also don't understand how when or why a zip file would be getting appended to the Tcl dynamic library. I can believe that there is a make option that does that, but I don't know what it is. I can also believe that simply appending a random file to the end of a mach-O dynamic library does not have the effect of extending the TEXT segment. I need a lot more explanation about what the goal is here and also what the mechanism is for appending a zip file. A dynamic library (often but not always named with the .dylib extension) can be used for either linking or for loading dynamically. It is not possible to link against a "shared library" (usually .so or .bundle). The Tcl library created by the standard build is a dynamic library but it is just named Tcl. My understanding is that the dynamic library's identification name is only used when an executable or library is linked against it, and that it gets copied into the list of library load paths for the executable, i.e. the paths that get displayed by otool -L below the identification name.
- login: "marc_culler"
- mimetype: "text/plain"
- username: "Marc Culler"