USES=compiler:c++14-lang still adds -std=c++11 to CXXFLAGS

Mathieu Arnold mat at FreeBSD.org
Thu Jun 16 12:10:46 UTC 2016



+--On 15 juin 2016 11:26:57 -0700 Yuri <yuri at rawbw.com> wrote:
| I have a port that needs c++14. USES statements are like this:
| 
| USES=        compiler:c++14-lang gmake qmake
| USE_QT5= core gui network
| 
| Yet, compiler command lines still have -std=c++11, and build fails
| because of the lack of c++14 support.
| 
| What is wrong? I think this is a bug in /usr/ports/Mk/Uses/compiler.mk

As far as I can see, you need to add USE_CSTD=c++14 to your port Makefile.

-- 
Mathieu Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20160616/6d0d60e1/attachment.sig>


More information about the freebsd-ports mailing list