Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Mar 2017 23:40:08 +0100
From:      Michael Gmelin <freebsd@grem.de>
To:        Yuri <yuri@rawbw.com>
Cc:        "ports@freebsd.org" <ports@freebsd.org>
Subject:   Re: compiler:c++11-lang doesn't ensure c++11?
Message-ID:  <20170318234008.6000d305@bsd64.grem.de>
In-Reply-To: <ec4f2b87-0155-bb88-c6c9-e61bb5a3a9e5@rawbw.com>
References:  <cd02dae4-ed76-effa-923d-8222d2c68764@rawbw.com> <20170318215907.6364e561@bsd64.grem.de> <ec4f2b87-0155-bb88-c6c9-e61bb5a3a9e5@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 18 Mar 2017 15:17:27 -0700
Yuri <yuri@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.

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 standard, not to request the compiler to build.Setting the CXXFLAGS is either done by the build system of
the software you're porting 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170318234008.6000d305>