--- Makefile (revision 492190) +++ Makefile (working copy) @@ -15,9 +15,6 @@ 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 @@ OPTIONS_DEFINE= DOCS +.include + +.if ${COMPILER_TYPE:Mgcc} +CFLAGS+= -fnested-functions +.endif + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/funkgold ${STAGEDIR}${PREFIX}/bin @@ -38,4 +41,4 @@ ${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}${DOCSDIR} .endfor -.include +.include