Minimal changes to get building on OS X with clang and Homebrew

Install dependencies with Homebrew and then from within src directory:

    make USE_UPNP=1 -j $(sysctl -n hw.ncpu) -f Makefile.osx all

The only concern is how to install specific versions of the dependencies (to avoid accidentally resulting a hard fork).

Unfortunately, I couldn't find "db-4.7.25.NC" via Homebrew. The farthest back they have is 4.8.30. Is that OK?

Also, I haven't tested yet if boost 1.5 builds on OS X or not. 1.55 does, but I'm not sure about 1.5.
On 09/19/2014 10:23 AM, phelixbtc wrote:
> In src/util.h:
> 
>> @@ -109,12 +109,13 @@ T* alignup(T* p)
>>      return u.ptr;
>>  }
>>  
>> +#define MSG_NOSIGNAL        0
> 
> |#if defined(__WXMSW__) || defined(__clang__)
> #define MSG_NOSIGNAL        0
> #endif

This will break build with clang on linux, won't it?

#ifndef MSG_NOSIGNAL
# define MSG_NOSIGNAL 0
#endif

is probably safer, albeit not bullet-proof. On Linux, MSG_NOSIGNAL is a enum
value, but it is accompanied with a #define, making it workable (hopefully).