[asterisk-dev] Installing Asterisk in Mac OS X Mavericks

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Feb 28 00:19:12 CST 2014


On Thu, Feb 27, 2014 at 12:55:43PM -0600, David M. Lee wrote:
> Asterisk requires GCC to build properly. The most recent version of Xcode symlinks gcc to Clang’s compiler. Which is… unfortunate.
> 
> I install GCC myself (gcc-4.8 for 12 and trunk; gcc-4.2 for 11 and earlier) for compiling Asterisk on OS X. Both are easily installed via Homebrew (brew install apple-gcc42 gcc48), and work fine for me.
> 
> You select the compiler by setting CC and CXX in the environment when you invoke configure:
> 
>   CC=gcc-4.2 CXX=g++-4.2 ./configure

The two messages there seem to be valid at first glance. Specifically,
can we please please please get rid of -O6?

That said, you can work around the latter by providing your own CFLAGS.

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com



More information about the asterisk-dev mailing list