summaryrefslogtreecommitdiff
path: root/cross/nios2-binutils
diff options
context:
space:
mode:
authorjoerg <joerg>2013-12-08 22:29:05 +0000
committerjoerg <joerg>2013-12-08 22:29:05 +0000
commit8c895f5eb67da9cd952bdb0e35ea8e07bf12342b (patch)
tree1787110efb4b9087494d011d95c16af753c64cd4 /cross/nios2-binutils
parent184b74c1283018f8209e09ed453e9c76d6fe7523 (diff)
downloadpkgsrc-8c895f5eb67da9cd952bdb0e35ea8e07bf12342b.tar.gz
Ignore some of Clang's default warnings.
Diffstat (limited to 'cross/nios2-binutils')
-rw-r--r--cross/nios2-binutils/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/cross/nios2-binutils/Makefile b/cross/nios2-binutils/Makefile
index 9dad49bc426..7b3d544da2a 100644
--- a/cross/nios2-binutils/Makefile
+++ b/cross/nios2-binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2013/12/03 02:34:52 mef Exp $
+# $NetBSD: Makefile,v 1.5 2013/12/08 22:29:05 joerg Exp $
.include "../../cross/nios2/Makefile.common"
PKGNAME= nios2-binutils-${PKG_VERSION}
PKG_VERSION= 2.23
@@ -21,6 +21,11 @@ CONFIGURE_ARGS+= --disable-nls
# install libiberty by architecture
CONFIGURE_ARGS+= --libdir=${PREFIX}/${NIOS2_TARGET}/lib
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+CFLAGS+= -Wno-string-plus-int -Wno-self-assign
+.endif
+
# To avoid conflict with other cross/native info files,
NIOS_INFO_DIR= ${PREFIX}/info/${NIOS2_TARGET}
.include "../../mk/bsd.prefs.mk"