On 14 August 2011 07:29, Dimiter "malkia" Stanev
<malkia@gmail.com> wrote:
install_name_tool -change libluajit.dylib @executable_path/libluajit.dylib luajit
If you do not supply an install_name it defaults to the output directory and name which if I read your script correctly would be ../luajit/src/libluajit.dylib and LuaJIT now defaults to /usr/local/lib/luajit.dylib both of which are shorter than the special executable_path install name prefix. I believe you should use the option headerpad_max_install_names to allow for future names to be longer, or just set it earlier in the makefile.