Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2018 08:58:46 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479999 - head/mail/exim
Message-ID:  <201809180858.w8I8wkNH085419@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+# 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 <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809180858.w8I8wkNH085419>