From f8d815e19f925c7122f4bf4ead01b0111336866a Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Tue, 18 Sep 2012 15:50:35 +0000 Subject: Add -fnested-functions compile flag, if needed. In order to use nested functions on some versions of GCC (e.g. GCC on OS X), the -fnested-functions flag must be passed to the compiler. This patch adds detection logic to ./configure to add the flag if necessary. It also adds a comment to utils.h as to why the nested function needs a prototype. (closes issue ASTERISK-20399) Reported by: David M. Lee Review: https://reviewboard.asterisk.org/r/2102/ ........ Merged revisions 373119 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@373120 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- makeopts.in | 1 + 1 file changed, 1 insertion(+) (limited to 'makeopts.in') diff --git a/makeopts.in b/makeopts.in index dd10f9b54..25c23b3c4 100644 --- a/makeopts.in +++ b/makeopts.in @@ -105,6 +105,7 @@ AST_DECLARATION_AFTER_STATEMENT=@AST_DECLARATION_AFTER_STATEMENT@ AST_TRAMPOLINES=@AST_TRAMPOLINES@ AST_NO_STRICT_OVERFLOW=@AST_NO_STRICT_OVERFLOW@ AST_SHADOW_WARNINGS=@AST_SHADOW_WARNINGS@ +AST_NESTED_FUNCTIONS=@AST_NESTED_FUNCTIONS@ AST_FORTIFY_SOURCE=@AST_FORTIFY_SOURCE@ AST_MARCH_NATIVE=@AST_MARCH_NATIVE@ -- cgit v1.2.3