Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2012 12:38:21 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ehaupt@FreeBSD.org
Subject:   ports/168164: [PATCH] net/socat: Fix build with clang
Message-ID:  <201205201238.q4KCcL7J053056@freefall.freebsd.org>
Resent-Message-ID: <201205201240.q4KCe1gp053187@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         168164
>Category:       ports
>Synopsis:       [PATCH] net/socat: Fix build with clang
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 20 12:40:01 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Baptiste Daroussin
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
System: FreeBSD azathoth.lan 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r233418M: Sat Mar 24 13:45:31 CET
>Description:
This patch fixes build with clang, clang complaining about unused comparison
that are use in the configure test to determine the size of some types

Port maintainer (ehaupt@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_5 (mode: change, diff: CVS)
>How-To-Repeat:
>Fix:

--- socat-1.7.2.1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/net/socat/Makefile,v
retrieving revision 1.35
diff -u -u -r1.35 Makefile
--- Makefile	14 May 2012 18:42:14 -0000	1.35
+++ Makefile	20 May 2012 12:37:23 -0000
@@ -21,6 +21,9 @@
 USE_RC_SUBR=	socat
 USE_OPENSSL=	yes
 MAKE_JOBS_SAFE=	yes
+.if ${CC} == clang
+CFLAGS+=	-Wno-unused-comparison
+.endif
 
 PORTSCOUT=	skipv:2.0.0-b2
 
--- socat-1.7.2.1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



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