Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Dec 2018 23:56:00 +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: r486810 - head/devel/tigcc
Message-ID:  <201812062356.wB6Nu014057553@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Thu Dec  6 23:55:59 2018
New Revision: 486810
URL: https://svnweb.freebsd.org/changeset/ports/486810

Log:
  -fnested-functions is necessary to support nested functions with base GCC.
  
  While here, pet portlint.
  
  PR:		232520
  Submitted by:	Piotr Kubaj
  Approved by:	maintainer (earlier version of patch)

Modified:
  head/devel/tigcc/Makefile

Modified: head/devel/tigcc/Makefile
==============================================================================
--- head/devel/tigcc/Makefile	Thu Dec  6 23:40:15 2018	(r486809)
+++ head/devel/tigcc/Makefile	Thu Dec  6 23:55:59 2018	(r486810)
@@ -15,13 +15,8 @@ DISTFILES=		gcc-core-4.1-20060728.tar.bz2:gcc \
 MAINTAINER=	cyberbotx@cyberbotx.com
 COMMENT=	C compiler for the TI89, 92, and 92+ calculators
 
-BROKEN_mips=		fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_mips64=		fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_powerpc64=	fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_sparc64=		fails to compile: main_opt.inc: nested functions are disabled, use -fnested-functions to re-enable
-
-USE_CSTD=	gnu89
 USES=		bison compiler:nestedfct gmake tar:bzip2
+USE_CSTD=	gnu89
 NO_WRKSUBDIR=	yes
 SUB_FILES=	pkg-message
 
@@ -143,4 +138,10 @@ do-install-EXAMPLES-on:
 	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
 	@${CP} ${WRKSRC}/tigcc/tigcclib/examples/* ${STAGEDIR}${EXAMPLESDIR}/
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
+CFLAGS+=	-fnested-functions
+.endif
+
+.include <bsd.port.post.mk>



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