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
Showing
- Makefile 1 addition, 1 deletionMakefile
- configure 7620 additions, 34926 deletionsconfigure
- configure.ac 12 additions, 0 deletionsconfigure.ac
- include/asterisk/autoconfig.h.in 8 additions, 5 deletionsinclude/asterisk/autoconfig.h.in
- include/asterisk/utils.h 2 additions, 1 deletioninclude/asterisk/utils.h
- makeopts.in 1 addition, 0 deletionsmakeopts.in
Loading
Please register or sign in to comment