[asterisk-dev] backport RAII_VAR to 1.8?

Tilghman Lesher tilghman at meg.abyt.es
Mon May 20 16:29:35 CDT 2013


On Mon, May 20, 2013 at 3:44 PM, David M. Lee <dlee at digium.com> wrote:
> On May 17, 2013, at 4:19 PM, Tilghman Lesher wrote:
>
>> Since clang is the default on Mac OS X, you're essentially suggesting
>> the end of simple support for Asterisk on the Mac.  I don't know if
>> that's desireable, especially in the middle of a release cycle.
>
> Our configure script (apparently) prefers gcc to using cc, so clang
> being the default compiler on OS X shouldn't be a problem. There are
> other things that would trip you up to keep Asterisk on Mac from being
> truly simple, though (OpenSSL and SNMP immediately come to mind).
>
> Given that, I don't see this being an issue, at least for OS X.

Note:

$ gcc -v
Using built-in specs.
Target: i686-apple-darwin11
Configured with:
/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure
--disable-checking --enable-werror
--prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2
--mandir=/share/man --enable-languages=c,objc,c++,obj-c++
--program-prefix=llvm-
--program-transform-name=/^[cg][^.-]*$/s/$/-4.2/
--with-slibdir=/usr/lib --build=i686-apple-darwin11
--enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local
--program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11
--target=i686-apple-darwin11
--with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

In other words, gcc on Mac OS X is, in fact, clang, even though it's
hiding some of the differences with a gcc frontend executable.

-Tilghman



More information about the asterisk-dev mailing list