Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 14:42:24 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r483037 - branches/2018Q4/mail/milter-callback
Message-ID:  <201810261442.w9QEgOR3095929@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Oct 26 14:42:24 2018
New Revision: 483037
URL: https://svnweb.freebsd.org/changeset/ports/483037

Log:
  MFH: r483035
  
  Fix build with GCC-based architectures. GCC architectures require
  CFLAGS+=-fnested-functions.
  
  PR:		232646
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>
  Approved by:	ports-secteam (blanket)

Modified:
  branches/2018Q4/mail/milter-callback/Makefile
Directory Properties:
  branches/2018Q4/   (props changed)

Modified: branches/2018Q4/mail/milter-callback/Makefile
==============================================================================
--- branches/2018Q4/mail/milter-callback/Makefile	Fri Oct 26 14:42:15 2018	(r483036)
+++ branches/2018Q4/mail/milter-callback/Makefile	Fri Oct 26 14:42:24 2018	(r483037)
@@ -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:



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