[Bug 211134] Mk/Uses/compiler.mk: Needs to add --std=c++11 to CXXFLAGS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jul 15 10:18:50 UTC 2016


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

--- Comment #3 from Baptiste Daroussin <bapt at 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=compiler:c++11-lang
OR
2/ a compiler that provides the support for c++11 standard library via
USES=compiler:c++11-lib

AND (yes this is separate)

Specify which standard you are using:
USE_CXXSTD=c++11


if you compiler tells you:
> cc1plus: error: unrecognized command line option "-std=c++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

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


More information about the freebsd-ports-bugs mailing list