]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Add -fnested-functions compile flag, if needed.
authorDavid M. Lee <dlee@digium.com>
Tue, 18 Sep 2012 15:47:01 +0000 (15:47 +0000)
committerDavid M. Lee <dlee@digium.com>
Tue, 18 Sep 2012 15:47:01 +0000 (15:47 +0000)
commit0227e8159513fda19deb8fce9692aaac56bad897
treeee2ee5f5f764d3f6e021b913bbd735be790af2fd
parent768737050030e29973fc5e8af6baec804fd00b60
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/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@373119 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Makefile
configure
configure.ac
include/asterisk/autoconfig.h.in
include/asterisk/utils.h
makeopts.in