Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2012 11:20:11 GMT
From:      Jan Beich <jbeich@tormail.org>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/171575: [patch] sysutils/uhidd: make it work with clang (encoding-related)
Message-ID:  <201209131120.q8DBKBV8017394@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/171575; it has been noted by GNATS.

From: Jan Beich <jbeich@tormail.org>
To: Vitaly Magerya <vmagerya@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/171575: [patch] sysutils/uhidd: make it work with clang (encoding-related)
Date: Thu, 13 Sep 2012 06:12:24 -0500

 --=-=-=
 Content-Type: text/plain
 
 Vitaly Magerya <vmagerya@gmail.com> writes:
 
 > Another (and I think this is a slightly better fix) is to simply
 > disable -Werror; see the attached patch.
 [...]
 > +MAKE_ENV+=	NO_WERROR=y
 
 What if there's a KPI change? Let's use -Wno-error=invalid-source-encoding
 until clang grows support for iconv (-finput-charset, et al.)
 
 
 --=-=-=
 Content-Type: text/x-patch
 Content-Disposition: attachment; filename=clang_literal_workaround.diff
 
 Index: sysutils/uhidd/Makefile
 ===================================================================
 --- sysutils/uhidd/Makefile	(revision 303636)
 +++ sysutils/uhidd/Makefile	(working copy)
 @@ -34,6 +34,10 @@ MAN8=		uhidd.8
  
  .include <bsd.port.pre.mk>
  
 +.if !empty(CC:M*clang*)
 +CFLAGS+=	-Wno-error=invalid-source-encoding
 +.endif
 +
  .if defined(DEBUG_FLAGS)
  MAKE_ENV+=	DEBUG_FLAGS='${DEBUG_FLAGS}'
  .endif
 
 --=-=-=--



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