[asterisk-dev] [Code Review]: Make weak reference support linux and MacOSX only.

Tilghman Lesher reviewboard at asterisk.org
Sat Dec 10 02:54:00 CST 2011



> On Dec. 9, 2011, 3:14 p.m., Kevin Fleming wrote:
> > Other than some comment changes, this looks good to me.

Weak references also work on the *BSDs, and therefore, these platforms need some support in configure.ac.

Beyond this, we also need to change menuselect's configure.ac at the same time, because that one translates a lack of weak reference support from "use" to "depend".


> On Dec. 9, 2011, 3:14 p.m., Kevin Fleming wrote:
> > /branches/1.8/configure.ac, lines 897-899
> > <https://reviewboard.asterisk.org/r/1617/diff/1/?file=22193#file22193line897>
> >
> >     Be consistent here. 'Mac OS/X' is the most common way to refer to this platform, but in this case referring to 'Darwin' would also be appropriate.

Actually, the canonical name is "Mac OS X".


- Tilghman


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


On Dec. 9, 2011, 3:44 p.m., rmudgett wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/1617/
> -----------------------------------------------------------
> 
> (Updated Dec. 9, 2011, 3:44 p.m.)
> 
> 
> Review request for Asterisk Developers, Kevin Fleming, Olle E Johansson, and Tilghman Lesher.
> 
> 
> Summary
> -------
> 
> Weak references is not portable and either does not work or does not work as expected on other platforms.
> 
> Primarily support weak references on linux platforms because the feature just works.
> 
> Allow weak symbol support on MacOS/X platforms only because there is active community support for it.  However, MacOS/X seems to break weak symbols for each new version.
> 
> 
> This addresses bugs ASTERISK-18728 and ASTERISK-18950.
>     https://issues.asterisk.org/jira/browse/ASTERISK-18728
>     https://issues.asterisk.org/jira/browse/ASTERISK-18950
> 
> 
> Diffs
> -----
> 
>   /branches/1.8/configure UNKNOWN 
>   /branches/1.8/configure.ac 347865 
> 
> Diff: https://reviewboard.asterisk.org/r/1617/diff
> 
> 
> Testing
> -------
> 
> My linux box now configures for HAVE_ATTRIBUTE_weakref instead of HAVE_ATTRIBUTE_weak which is Darwin specific. 
> 
> 
> Thanks,
> 
> rmudgett
> 
>

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


More information about the asterisk-dev mailing list