суббота, 23 февраля 2013 г.

How to compile 'otool'

As a personal note.

1. Get it here: http://www.opensource.apple.com/source/cctools
2. Modify 'libstuff' Makefile to avoid 'LTO'(link time optimization) support. '-DLTO...' and 'lto.o'
3. Run 'make' inside libstuff directory
4. Run 'make' inside otool directory (don't remember exactly, may be Makefile update required as well)


Error I was getting:
../lto.c:8:10: fatal error: 'llvm-c/lto.h' file not found
#include <llvm-c/lto.h>