[asterisk-dev] [Code Review] Add -fnested-functions compile flag, if needed.

David Lee reviewboard at asterisk.org
Mon Sep 10 10:22:04 CDT 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2102/
-----------------------------------------------------------

Review request for Asterisk Developers.


Summary
-------

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
* Adds AST_NESTED_FUNCTIONS to ./makeopts.in
* Includes AST_NESTED_FUNCTIONS in _ASTCFLAGS


This addresses bug ASTERISK-20399.
    https://issues.asterisk.org/jira/browse/ASTERISK-20399


Diffs
-----

  /branches/11/Makefile 372735 
  /branches/11/configure UNKNOWN 
  /branches/11/configure.ac 372735 
  /branches/11/include/asterisk/autoconfig.h.in 372735 
  /branches/11/makeopts.in 372735 

Diff: https://reviewboard.asterisk.org/r/2102/diff


Testing
-------

Compiled on OS X and Ubuntu 12.04.


Thanks,

David

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20120910/bb53e23d/attachment.htm>


More information about the asterisk-dev mailing list