mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-14 01:27:35 -05:00

It actually doesn't seem to be necessary: running 'otool -L' on the real binary in the application bundle (Pterm-bin or PuTTY-bin) lists a lot of paths starting with "@executable_path/../Resources/", which I take to mean that the application is already set up to automatically load the GTK shared libraries out of its own bundle directory, without me having to give it the extra hint of DYLD_LIBRARY_PATH. Moreover, I just got round to upgrading my Mac to High Sierra, and now the version of osxlaunch _with_ DYLD_LIBRARY_PATH is causing a crash at program load time, when the libpng in the MacOS system library directory tries to use the libz in the application bundle and finds that it doesn't provide an entry point it was expecting ('inflateValidate'). I could try to fix that by updating the libz version in my OS X PuTTY build environment, but that seems to me to set a precedent of running to keep up with any further dependencies the system libraries happen to acquire in later releases. Better to reset DYLD_LIBRARY_PATH so that the system libpng will load the system libz and not get confused in the first place.