Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2013 20:59:41 +0200 (CEST)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/181761: [patch] devel/mingw32-binutils: fix build with clang
Message-ID:  <201309021859.r82Ixfhi046449@kalimero.tijl.coosemans.org>
Resent-Message-ID: <201309021910.r82JA00M012419@freefall.freebsd.org>

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

>Number:         181761
>Category:       ports
>Synopsis:       [patch] devel/mingw32-binutils: 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:   Mon Sep 02 19:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Tijl Coosemans
>Release:        FreeBSD 10.0-CURRENT i386
>Organization:
>Environment:
>Description:
The attached removes USE_GCC=any and adds --disable-werror to
CONFIGURE_ARGS to allow building with clang.
Initially I tried adding flags like -Wno-error=string-plus-int to CFLAGS
but I kept having to disable more and more warnings and future versions
of clang might require even more that I think setting --disable-werror is
best.
The attached patch also converts USE_GMAKE to USES=gmake.
>How-To-Repeat:
>Fix:

--- mingw32-binutils.patch begins here ---
Index: devel/mingw32-binutils/Makefile
===================================================================
--- devel/mingw32-binutils/Makefile	(revision 325982)
+++ devel/mingw32-binutils/Makefile	(working copy)
@@ -3,6 +3,7 @@
 
 PORTNAME=	binutils
 PORTVERSION=	${BINUTILVERSION}
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_SOURCEWARE}
@@ -15,14 +16,12 @@ COMMENT=	GNU Binutils for Windows cross-
 BINUTILVERSION=	2.23.1
 
 USE_BZIP2=	yes
-USE_GCC=	any
-USE_GMAKE=	yes
-USES=		iconv
+USES=		gmake iconv
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--target=${PKGNAMEPREFIX:S/-$//} \
 		--with-gcc --with-gnu-ld --with-gnu-as \
 		--disable-nls --disable-win32-registry \
-		--disable-shared
+		--disable-shared --disable-werror
 INFO_PATH=	${PKGNAMEPREFIX:S/-$//}/info
 
 MAN1=	${PKGNAMEPREFIX}addr2line.1 ${PKGNAMEPREFIX}ar.1    \
--- mingw32-binutils.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?201309021859.r82Ixfhi046449>