pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mingw-w64-binutils: Fix compilation with Clang



Module Name:	pkgsrc-wip
Committed By:	Jonathan Schleifer <js%heap.zone@localhost>
Pushed By:	js
Date:		Sun Jul 3 20:01:52 2016 +0200
Changeset:	b5ac327327ae3fe1d74d701bb12952b9dcc9fdad

Modified Files:
	mingw-w64-binutils/Makefile

Log Message:
mingw-w64-binutils: Fix compilation with Clang

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=b5ac327327ae3fe1d74d701bb12952b9dcc9fdad

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mingw-w64-binutils/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diffs:
diff --git a/mingw-w64-binutils/Makefile b/mingw-w64-binutils/Makefile
index 558301b..b4c676b 100644
--- a/mingw-w64-binutils/Makefile
+++ b/mingw-w64-binutils/Makefile
@@ -18,8 +18,10 @@ GNU_CONFIGURE_PREFIX=	${PREFIX}/cross
 USE_TOOLS+=		gmake makeinfo
 INFO_FILES=		yes
 
-CONFIGURE_ARGS+=	--target=x86_64-w64-mingw32	\
-			  --enable-targets=x86_64-w64-mingw32,i686-w64-mingw32
+CONFIGURE_ARGS+=	--target=x86_64-w64-mingw32
+CONFIGURE_ARGS+=	--enable-targets=x86_64-w64-mingw32,i686-w64-mingw32
+CONFIGURE_ARGS+=	--disable-werror
+CONFIGURE_ARGS+=	--disable-debug
 
 CONFIGURE_DIRS=		../build
 BUILD_DIRS=		../build
@@ -27,6 +29,12 @@ INSTALL_DIRS=		../build
 
 CONFIGURE_SCRIPT=	${WRKSRC}/configure
 
+.include "../../mk/compiler.mk"
+
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+=		-fbracket-depth=1024
+.endif
+
 post-extract:
 	mkdir ${WRKDIR}/build
 


Home | Main Index | Thread Index | Old Index