Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jul 2016 10:18:49 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 211134] Mk/Uses/compiler.mk: Needs to add --std=c++11 to CXXFLAGS
Message-ID:  <bug-211134-13-hvMJSbUy0N@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-211134-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-211134-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211134

--- Comment #3 from Baptiste Daroussin <bapt@FreeBSD.org> ---
You need to say to the framework that you need either
1/ a compiler that is recent enough for c++11 via USES=3Dcompiler:c++11-lang
OR
2/ a compiler that provides the support for c++11 standard library via
USES=3Dcompiler:c++11-lib

AND (yes this is separate)

Specify which standard you are using:
USE_CXXSTD=3Dc++11


if you compiler tells you:
> cc1plus: error: unrecognized command line option "-std=3Dc++11"

That means it received CXXFLAGS as you are asking for properly. But probably
you did not tell it (or have removed when testing) the 1 or 2 leading you to
using base gcc which is 4.2 and does not support C++11 at all

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-211134-13-hvMJSbUy0N>