compiler:c++11-lang doesn't ensure c++11?

Yuri yuri at rawbw.com
Sat Mar 18 23:08:50 UTC 2017


On 03/18/2017 15:43, Michael Gmelin wrote:
> Do you have a reference where this is stated? AFAIK it's only there
> to make sure to install a compiler that is capable of supporting that
> version of the C++ standard, not to request the compiler to build each
> and every translation unit of the port using it. Setting CXXFLAGS is
> either done by the build system of the software you're porting (which
> would it allow to use different versions if necessary) or can be
> requested by setting USE_CXXSTD=c++xx in the port's Makefile.


Sorry, I may have assumed too much. Now I see that compiler:c++11-lang 
upgrades the compiler to the compliant one, but leaves the flags to the 
project.


Yuri



More information about the freebsd-ports mailing list