dylib을 쓰는 어플리케이션을 만들었을 때, 참조하는 lib path가 절대 경로로 들어가 애먹는 경우가 있을때…
install_name_tool -change {old path} {new path} {binary name}
하면 library 참조 경로를 수정할 수 있음…
belliny-on-air:tcmalloctest1 belliny$ otool -L test test: /usr/local/lib/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
belliny-on-air:tcmalloctest1 belliny$ otool -L test test: @executable_path/lib/libtcmalloc.4.dylib (compatibility version 6.0.0, current version 6.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 169.3.0)
http://stackoverflow.com/questions/4677044/how-to-use-dylib-in-mac-os-x-c
http://ynniv.com/blog/2006/02/deploying-app-that-use-dylibs-on-mac.html