svn commit: r483035 - head/mail/milter-callback

Emanuel Haupt ehaupt at FreeBSD.org
Fri Oct 26 14:40:55 UTC 2018


Author: ehaupt
Date: Fri Oct 26 14:40:54 2018
New Revision: 483035
URL: https://svnweb.freebsd.org/changeset/ports/483035

Log:
  Fix build with GCC-based architectures. GCC architectures require
  CFLAGS+=-fnested-functions.
  
  PR:		232646
  Submitted by:	Piotr Kubaj <pkubaj at anongoth.pl>
  MFH:		2018Q4 (blanket)

Modified:
  head/mail/milter-callback/Makefile

Modified: head/mail/milter-callback/Makefile
==============================================================================
--- head/mail/milter-callback/Makefile	Fri Oct 26 13:58:02 2018	(r483034)
+++ head/mail/milter-callback/Makefile	Fri Oct 26 14:40:54 2018	(r483035)
@@ -12,10 +12,6 @@ COMMENT=	Milter to perform a envelope-from sender veri
 
 LICENSE=	GPLv3
 
-BROKEN_mips=		fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_mips64=		fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_powerpc64=	fails to build: error: nested functions are disabled, use -fnested-functions to re-enable
-
 LIB_DEPENDS=	libspf2.so:mail/libspf2
 
 USES=		tar:xz
@@ -30,6 +26,12 @@ SRC_FILES=	cache.c commonprocs.c cpit.c dealwithmxes.c
 
 CFLAGS+=	-DFREEBSD -DHAVE_NS_TYPE -DWITH_SPF -I${LOCALBASE}/include \
 		-I${WRKSRC} -std=gnu99
+CFLAGS_mips=	-fnested-functions
+CFLAGS_mips64=	-fnested-functions
+CFLAGS_powerpc=	-fnested-functions
+CFLAGS_powerpcspe=	-fnested-functions
+CFLAGS_powerpc64=	-fnested-functions
+CFLAGS_sparc64=	-fnested-functions
 LDFLAGS+=	-lmilter -lthr -L${LOCALBASE}/lib -lspf2
 
 do-build:


More information about the svn-ports-all mailing list