[macports-ports] branch master updated: esmf: fix build with gcc5 or earlier

Takeshi Enomoto takeshi at macports.org
Mon May 14 06:19:28 UTC 2018


Dear Ryan,

>> +if {[variant_isset gcc47] || [variant_isset gcc48] || [variant_isset gcc49] || [variant_isset gcc5]} {
>> +    configure.cxxflags-append   -std=c++11
>> +} elseif {[variant_isset gcc44] || [variant_isset gcc45] || [variant_isset gcc46]} {
>> +    configure.cxxflags-append   -std=c++0x
>> +}
>
> gcc6 and later don't need such a flag?

c++14 is the default as of gcc6.

<https://gcc.gnu.org/projects/cxx-status.html>

Takeshi


More information about the macports-dev mailing list