I am not a makefile guru or shell developer, but for what
it's worth, I like the calling of user options rather than
having people edit our makefiles.

- Bob

On 8/30/13 1:04 PM, bgoodri wrote:
> In make/os_mac:
>
>>  ifeq (clang++,$(CC_TYPE))
>>    CFLAGS_GTEST += -Wc++11-extensions
>>    CFLAGS_GTEST += -Wno-c++11-long-long
>>    CFLAGS += -Wno-unused-function
>>    CFLAGS += -Wno-tautological-compare
>>    CFLAGS += -Wno-c++11-long-long
>> +  CFLAGS += -ftemplate-depth=256
>> +  ifeq (true,$(C++11))
>> +    CFLAGS += -stdlib=libc++ -std=c++11
>
> @goedman <https://github.com/goedman> @bob-carpenter <https://github.com/bob-carpenter>
>
> I think having the C++11 flag imply |CFLAGS += -stdlib=libc++ -std=c++11| is not quite right because we also want to
> support the c++11 standard under g++ (>= 4.7). It is technically possible to use LLVM's version of the standard c++
> library with g++ but that is sort of an academic exercise and essentially everyone using g++ would be using GCC's
> version of the standard c++ library.
>
> So, I think if someone wants to use the C++11 standard, they should just add the appropriate flags locally to their
> make/os_{win,mac,linux} file. Or maybe we should source another (possibly empty) file under make/ called user_options or
> something.
>
> —
> Reply to this email directly or view it on GitHub <https://github.com/stan-dev/stan/pull/184/files#r6091044>.
>