From owner-svn-ports-all@freebsd.org Tue Sep 18 08:58:46 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D8D0910983D4; Tue, 18 Sep 2018 08:58:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EA39861C1; Tue, 18 Sep 2018 08:58:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8985D1DC7A; Tue, 18 Sep 2018 08:58:46 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8I8wkkp085420; Tue, 18 Sep 2018 08:58:46 GMT (envelope-from linimon@FreeBSD.org) Received: (from linimon@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8I8wkNH085419; Tue, 18 Sep 2018 08:58:46 GMT (envelope-from linimon@FreeBSD.org) Message-Id: <201809180858.w8I8wkNH085419@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: linimon set sender to linimon@FreeBSD.org using -f From: Mark Linimon Date: Tue, 18 Sep 2018 08:58:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r479999 - head/mail/exim X-SVN-Group: ports-head X-SVN-Commit-Author: linimon X-SVN-Commit-Paths: head/mail/exim X-SVN-Commit-Revision: 479999 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Sep 2018 08:58:47 -0000 Author: linimon Date: Tue Sep 18 08:58:46 2018 New Revision: 479999 URL: https://svnweb.freebsd.org/changeset/ports/479999 Log: Conditionalize EXIM_WARN_FLAGS on clang to fix build on gcc-based archs such as powerpc64. Tested for no change on amd64. Approved by: portmgr (tier-2 blanket) Modified: head/mail/exim/Makefile Modified: head/mail/exim/Makefile ============================================================================== --- head/mail/exim/Makefile Tue Sep 18 08:47:31 2018 (r479998) +++ head/mail/exim/Makefile Tue Sep 18 08:58:46 2018 (r479999) @@ -18,7 +18,7 @@ COMMENT?= High performance MTA for Unix systems on the LICENSE= GPLv2 -USES= cpe tar:bzip2 perl5 +USES= compiler cpe tar:bzip2 perl5 USE_PERL5= run # Exim build system is job unsafe atm @@ -151,9 +151,6 @@ CONFIG_FILE_PATH?= ${PREFIX}/etc/exim/configure ALT_CONFIG_PREFIX?= ${PREFIX}/etc/exim/ EXIM_DYNAMIC_LDFLAGS= -fPIC -rdynamic -export-dynamic -# Avoid too many warnings due to Exim code style -EXIM_WARN_FLAGS?= -Wno-logical-op-parentheses -Wno-macro-redefined -Wno-parentheses -Wno-dangling-else -CFLAGS+= ${EXIM_WARN_FLAGS} SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \ -e 's,%%DOCSDIR%%,${DOCSDIR},g' \ @@ -625,4 +622,12 @@ post-install: .endif # ! defined(EXIMON_ONLY) -.include +.include + +# If using clang, avoid too many warnings due to Exim code style +.if ${CHOSEN_COMPILER_TYPE} == "clang" +EXIM_WARN_FLAGS?= -Wno-logical-op-parentheses -Wno-macro-redefined -Wno-parentheses -Wno-dangling-else +.endif +CFLAGS+= ${EXIM_WARN_FLAGS} + +.include