svn commit: r486810 - head/devel/tigcc
Mark Linimon
linimon at FreeBSD.org
Thu Dec 6 23:56:01 UTC 2018
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 at 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>
More information about the svn-ports-all
mailing list