ports/171575: [patch] sysutils/uhidd: make it work with clang (encoding-related)
Vitaly Magerya
vmagerya at gmail.com
Thu Sep 13 11:30:08 UTC 2012
The following reply was made to PR ports/171575; it has been noted by GNATS.
From: Vitaly Magerya <vmagerya at gmail.com>
To: Jan Beich <jbeich at tormail.org>
Cc: bug-followup at FreeBSD.org
Subject: Re: ports/171575: [patch] sysutils/uhidd: make it work with clang
(encoding-related)
Date: Thu, 13 Sep 2012 14:26:31 +0300
Jan Beich wrote:
> What if there's a KPI change?
> [...]
> +.if !empty(CC:M*clang*)
> +CFLAGS+= -Wno-error=invalid-source-encoding
> +.endif
The reason I did not propose this is because /usr/bin/cc will become
clang some time soon, so that kind of detection will not work (and gcc
does not recognize that option, so one can't use it unconditionally).
If preserving -Werror is desired, the first patch in the PR above can be
used (I'm afraid it's formatting is broken, but the idea should be clear).
More information about the freebsd-ports-bugs
mailing list