diff options
author | joerg <joerg@pkgsrc.org> | 2016-05-07 09:52:44 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-05-07 09:52:44 +0000 |
commit | 99cae1a75aaefb7759bf8b8eb8fd39310fd2596d (patch) | |
tree | 9228b174820c491136fc853093bff80547af2027 | |
parent | cef443f1103dde0f2d138e2d01916bff51f0e960 (diff) | |
download | pkgsrc-99cae1a75aaefb7759bf8b8eb8fd39310fd2596d.tar.gz |
Disable various noisy warnings for GCC too. Adjust clang handling to
also work directly with bootstrap-mk-files.
-rw-r--r-- | devel/elftoolchain/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/devel/elftoolchain/Makefile b/devel/elftoolchain/Makefile index 7432f7be47d..9ddf54efb0a 100644 --- a/devel/elftoolchain/Makefile +++ b/devel/elftoolchain/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2016/03/09 21:34:21 tnn Exp $ +# $NetBSD: Makefile,v 1.11 2016/05/07 09:52:44 joerg Exp $ DISTNAME= elftoolchain-0.5.1 PKGREVISION= 1 @@ -20,10 +20,18 @@ USE_TOOLS+= m4 MAKE_ENV+= ${BSD_MAKE_ENV} MAKE_FLAGS+= MKPROFILE=yes -CWARNFLAGS.clang= -Wno-error=missing-noreturn \ +.include "../../mk/compiler.mk" +.if !empty(PKGSRC_COMPILER:Mgcc) +CWARNFLAGS+= -Wno-error=sign-conversion \ + -Wno-error=conversion \ + -Wno-error=unused-but-set-variable \ + -Wno-error=old-style-definition +.elif !empty(PKGSRC_COMPILER:Mclang) +CWARNFLAGS+= -Wno-error=missing-noreturn \ -Wno-error=constant-logical-operand \ -Wno-error=conversion -Wno-error=cast-qual -MAKE_FLAGS+= CWARNFLAGS.clang=${CWARNFLAGS.clang:Q} +.endif +MAKE_FLAGS+= CWARNFLAGS=${CWARNFLAGS:Q} INSTALLATION_DIRS= bin lib INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/cat1 ${PKGMANDIR}/html1 |