diff options
author | linimon <linimon@FreeBSD.org> | 2018-09-18 16:58:46 +0800 |
---|---|---|
committer | linimon <linimon@FreeBSD.org> | 2018-09-18 16:58:46 +0800 |
commit | f4e2bfa5df1bd47f9e23ae17cd9614d50af13658 (patch) | |
tree | 12da742c0ed2b7a5f7328756b1d40787a37711ae /mail | |
parent | e826b5e74616d9321d2c4f291f0f8de42e189852 (diff) | |
download | freebsd-ports-gnome-f4e2bfa5df1bd47f9e23ae17cd9614d50af13658.tar.gz freebsd-ports-gnome-f4e2bfa5df1bd47f9e23ae17cd9614d50af13658.tar.zst freebsd-ports-gnome-f4e2bfa5df1bd47f9e23ae17cd9614d50af13658.zip |
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)
Diffstat (limited to 'mail')
-rw-r--r-- | mail/exim/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index 9b0f84d5eb07..6f0520889419 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -18,7 +18,7 @@ COMMENT?= High performance MTA for Unix systems on the Internet 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> |