On 03 Nov 2013, at 18:33, Olle E. Johansson oej@edvina.net wrote:
Hi!
Kamailio by default doesn't compile on OS/X Mavericks.
$ make generating autover.h ... /Applications/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory -wC . cfg-defs target architecture <x86_64>, host architecture <x86_64> making config... CC (gcc) [kamailio] action.o error: invalid value '9' in '-O9' make: *** [action.o] Error 1
$ gcc --version Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1 Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) Target: x86_64-apple-darwin13.0.0 Thread model: posix
Anyone that has found an optimal way to patch the Makefile?
In Makefile.defs you can change -O9 in the clang section to -Ofast
Is clang used on other platforms so a change should only affect darwin? What I guess I mean is if there are other clang implementations that supports -O9 ?
/O :-.)