Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2016 14:10:41 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Yuri <yuri@rawbw.com>, ports@freebsd.org
Cc:        portmgr@FreeBSD.org
Subject:   Re: USES=compiler:c++14-lang still adds -std=c++11 to CXXFLAGS
Message-ID:  <44B29C67AD8CACB1CE4335E3@ogg.in.absolight.net>
In-Reply-To: <68938eb6-daef-7300-526a-1b501af51bf2@rawbw.com>
References:  <68938eb6-daef-7300-526a-1b501af51bf2@rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========64BE9A817B0BEACC0AB6==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



+--On 15 juin 2016 11:26:57 -0700 Yuri <yuri@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
--==========64BE9A817B0BEACC0AB6==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJXYpdBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85I/pAQAJriOlZc/MdgrU/nmxOEmdfG
ckFaPUnv2LceXKC64hNfHWJ34/LYHVG0mATMp1uEZQPua2nyafzh+9ofC2I8TvRI
e67tMlY62zCq6tmAaazJLEEpYG7+KoEhhDJAvoE9p3+s3k5ZocMGSQLhUyeIoUX9
HtipwTW/Go7+23vgIglLe8NyDzYnQWTkfzoSA/4ahj+h+9/nipQF/aQVnpRVCvEC
S1KMSFoTk5fmnuelWCplfNEf1GYOBr5CmpcyKXrkzw1RPs0QoJN2Qq7gNbmQr6kl
40FTyjjTT9WRjxCV/mr+vwM8/XUIw7wn0YI7yI5EAiausAqXGUw/Kuh4iBvozWt9
Qzuljq8dKgYCOe/t0ufTEz25W6qs1VHG6JAk4vgb/3UsKAtmrbMC/QrnyiGTybjR
Utvtttidjc21MEptaAErP2uB943q1G7OEi8V9yaY3LTy+BSJ/342kgXvo+3/TYhs
Js9MXWobr3yQQ/sW+4KV3e8LmKT81gu15YuUaZBP6yRphceuLbcd+93lBm4yMpKx
efTzx0tI5Ek4Pg39SvMhbcq5GtWs7nRnAhB7TlbYZLidZfxOGyVTH3CLdYlNwqE+
5mmbgT/R/5s4PIlykdBMRVQ8VR/7+f5ttnHd1emmpYs3FPaHzKjmviyR4DC1czmp
m9HygjJItg7P08Yn54k3
=U/3+
-----END PGP SIGNATURE-----

--==========64BE9A817B0BEACC0AB6==========--




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