summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-05-08 21:01:33 +0000
committerDavid M. Lee <dlee@digium.com>2013-05-08 21:01:33 +0000
commitb007c744a482d7c19545bdcbf1e4372fb36878a8 (patch)
tree963dc41910f76095d834d11bb73ca14c5cb0a845 /build_tools
parentec53d7fa87a9a4371468acc7ef67144ca0b7b545 (diff)
Add development flag to disable the inline API.
A GCC bug[1] can, in some cases, pop up an unsuppressible pedwarn when using a static inline standard library function from a non-static inline function. This normally doesn't show up, but can occur if you're running an upgrade version of GCC (such as GCC 4.8 on OS X, which normally runs GCC 4.2). [1]: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47816 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@388046 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools')
-rw-r--r--build_tools/cflags.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml
index 7e3e9eeb7..c4d15a67b 100644
--- a/build_tools/cflags.xml
+++ b/build_tools/cflags.xml
@@ -24,6 +24,12 @@
<member name="LOW_MEMORY" displayname="Optimize for Low Memory Usage">
<support_level>extended</support_level>
</member>
+ <member name="DISABLE_INLINE" displayname="Disable the inline API">
+ <!-- Added to work around GCC bug
+ See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47816
+ -->
+ <support_level>extended</support_level>
+ </member>
<member name="BETTER_BACKTRACES" displayname="Use libbfd (GPL) to generate better inline backtraces">
<depend>BFD</depend>
<depend>DLADDR</depend>