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

Mathieu Arnold mat at FreeBSD.org
Thu Jun 16 12:25:52 UTC 2016



+--On 16 juin 2016 14:10:41 +0200 Mathieu Arnold <mat at FreeBSD.org> wrote:
| 
| 
| +--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.

Mmmm, maybe USE_CXXSTD=c++14.

-- 
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/e5d8d1f8/attachment.sig>


More information about the freebsd-ports mailing list