Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2019 00:44:28 +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: r492284 - head/audio/funktrackergold
Message-ID:  <201902060044.x160iS8a058745@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Wed Feb  6 00:44:28 2019
New Revision: 492284
URL: https://svnweb.freebsd.org/changeset/ports/492284

Log:
  If compiling with base GCC, -fnested-functions needs to be passed.
  
  PR:		235541
  Submitted by:	Piotr Kubaj

Modified:
  head/audio/funktrackergold/Makefile

Modified: head/audio/funktrackergold/Makefile
==============================================================================
--- head/audio/funktrackergold/Makefile	Wed Feb  6 00:39:32 2019	(r492283)
+++ head/audio/funktrackergold/Makefile	Wed Feb  6 00:44:28 2019	(r492284)
@@ -15,9 +15,6 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 BROKEN_armv6=		fails to compile: function definition is not allowed here
 BROKEN_armv7=		fails to compile: function definition is not allowed here
-BROKEN_mips=		fails to compile: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_mips64=		fails to compile: nested functions are disabled, use -fnested-functions to re-enable
-BROKEN_powerpc64=	fails to compile: nested functions are disabled, use -fnested-functions to re-enable
 
 USES=		compiler:nestedfct ncurses tar:tgz
 
@@ -29,6 +26,12 @@ PLIST_FILES=	bin/funkgold
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE:Mgcc}
+CFLAGS+=	-fnested-functions
+.endif
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/funkgold ${STAGEDIR}${PREFIX}/bin
 
@@ -38,4 +41,4 @@ do-install-DOCS-on:
 	${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR}
 .endfor
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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