On Sat, 18 Mar 2017 15:17:27 -0700
Yuri <y...@rawbw.com> wrote:

> On 03/18/2017 13:59, Michael Gmelin wrote:
> > Afaik this is intentional and the point is to depend on a compiler
> > that can support those features (hence the comments in compiler.mk:
> > "The port needs a compiler understanding Cxx..."), but setting
> > CXXFLAGS accordingly is up to the project (through cmake/configure
> > etc.) or the port.  
> 
> 
> compiler:c++11-lang is supposed to add the flag when the compiler 
> doesn't support c++11 by default.

(sorry, previous email got butchered)

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.

> It is also supposed to upgrade the 
> compiler (use the higher version from ports) when the base compiler.
> Am I misunderstanding the purpose of compiler:c++11-lang?
> 
> 

See also
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211134

-m

-- 
Michael Gmelin
_______________________________________________
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to