svn commit: r320832 - head/net-mgmt/bandwidthd

William Grzybowski william88 at gmail.com
Fri Jun 14 15:00:43 UTC 2013


On Fri, Jun 14, 2013 at 11:56 AM, Sunpoet Po-Chuan Hsieh
<sunpoet at freebsd.org> wrote:
> Try this (cited from lang/v8/Makefile)
>
> .if ${CC:T:Mclang} == "clang" || ${CXX:T:Mclang++} == "clang++" ||
> ${OSVERSION} >= 1000024
> ...
> .endif

That won't work, CC = "cc" in 10-CURRENT.
One should use "cc -v" + grep to find out whether it is clang or cc.

But I guess you're missing the point, there isn't a single issue here.
All is resolved.

Thanks

> On Fri, Jun 14, 2013 at 2:55 PM, Alexey Dokuchaev <danfe at freebsd.org> wrote:
>>
>> On Thu, Jun 13, 2013 at 11:18:28PM +0200, Eitan Adler wrote:
>> > On Thu, Jun 13, 2013 at 9:05 PM, William Grzybowski <wg at freebsd.org>
>> > wrote:
>> >
>> > > -.if ${CC} == "clang"
>> >
>> > Thank you for changing this.   FWIW if you *do* need to detect clang
>> > this check is incorrect.
>> >
>> > The idiom ${CC:T:Mclang} == "clang") is required in order to allow
>> > absolute paths, etc.
>>
>> Well, these checks are obsolete on -CURRENT where Clang is installed as
>> default compiler (cc).
>>
>> ./danfe
>
>
>
>
> --
>   Sunpoet Po-Chuan Hsieh <sunpoet at sunpoet.net> <sunpoet at FreeBSD.org>
>           4096R/CC57E36B 8AD8 68F2 7D2B 0A10 7E9B 8CC0 DC44 247E CC57 E36B
>                             http://people.FreeBSD.org/~sunpoet/pgpkeys.txt



--
William Grzybowski
------------------------------------------
Curitiba/PR - Brasil


More information about the svn-ports-all mailing list