How to require proper <thread> header for port build?

Henry Hu henry.hu.sh at gmail.com
Tue Nov 3 20:39:13 UTC 2015


On Tue, Nov 3, 2015 at 11:22 AM, Lev Serebryakov <lev at freebsd.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
>  My new port requires C++0x, and I've added "USES=compiler:c++0x" to
> port's Makefile. But on 9.x it could not be built, as this USES
> doesn't guarantee presence of "#include <thread>" — port is built with
> clang++, but there is no such header.
>
>  What should I specify in port to support building on 9.x in such case?
>

I think that you can use "USES=compiler:c++11-lib" for this.

>
> - --
> // Lev Serebryakov
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQJ8BAEBCgBmBQJWON9ZXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
> ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRGOTZEMUNBMEI1RjQzMThCNjc0QjMzMEFF
> QUIwM0M1OEJGREM0NzhGAAoJEOqwPFi/3EePEu8P/iKG+FjS2GiVKSMp3/QDalHM
> ipQwcZ72EZAONWaQlkgx+cDQoxbpPk1He0IoWv8R4CrEVMSAJ00WPOkGXyVX8pK4
> Y2JMMXVgHAeyNA99XJ3uOALBSOAKPzLK16PQaywWh3xvgTu2SWrCciOHSGoclnkt
> KXkGQZcEcjNuL1+yuXkajjBY7y0oGrsAKkbpNVsk+dFkn1CVv73C4+PsW0CB8Pfz
> 5SPBHobCT/m+9dqIjMTsKRYugc9RUBcpuFalENgglhO9xoB7ZUs/3wBnYh1erhSX
> 6c6yMNIIqMxZTmao2b44Ucd+av9gt9Ktk+brS3G0J5uCv8XTP/lNc9YgLzm8GKPU
> sfkbO8J0veq48bhZs60ywGnq+cStbWC6WliDTToUrepiIpLZDvrdP1/WnQA5j65s
> EdFkmZqEgxUl+LTxIdAJpA5XEPww4bldKOX7ClGENzlicOKWvJXNuwaA9EO1RJ2l
> PCm1vQIlzy6sTaw9WPqlxvA4bdkOJMyUxXAKEbvO67LT3o94opwOJhsCNWkGiF7e
> W/GrGpEZ3xtcAOwgpDbGO6bHvAoxp0FqdP1yxX8MGzM4VGgIAUmgyxFQm+mzmaQn
> T95Itevr86VP+6PlKNmzNRHM8vm8Z/m9Es+jnJmG6+vfSHbTDju/G7Zw/qRWOgNp
> mjeMNP4dH+UNm4Y55oJ9
> =3jJc
> -----END PGP SIGNATURE-----
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"




-- 
Cheers,
Henry


More information about the freebsd-ports mailing list