On 2/16/12 10:49 PM, James Peach wrote:
Hi all,
As a few people have noticed, when you build trunk on Mac OS X with optimization enabled, g++ gets
an internal compiler error. This seems to be caused by generating debug info ... you can work
around it by removing the "-g" from CXFLAGS or disabling optimization by adding
"-O0".
In the medium term, we ought to switch to clang for building on OS X. I think this will require
flipping AC_PROG_CC and AC_PROG_CXX to search for "c++" before "g++". Are there
platforms that we support for which this is not desirable?
Kinda wish there were better configure options to use for this, other than
e.g. CC, CXX etc. I think it's ok to search for c++ first, but I honestly
have no idea where/when that would break (there's a zillion version of Linux
distros going back only the last 3-4 years :/).
-- Leif