summaryrefslogtreecommitdiff
path: root/build_tools
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2012-04-12 15:25:47 +0000
committerKinsey Moore <kmoore@digium.com>2012-04-12 15:25:47 +0000
commit8696daadf8c129d92c52b85d471fcacca9e50a85 (patch)
treeee347b0c1323438d9fcc9e7662d1ced2eb87a401 /build_tools
parent683eacb59a2d322d57c4c9bd9f6e22501c2c244b (diff)
Simplify build system architecture optimization
This change to the build system rips out any usage of PROC along with architecture-specific optimizations in favor of using -march=native where it is supported. This fixes broken builds on 64bit Intel systems and results in better optimized code on systems running GCC 4.2+. Review: https://reviewboard.asterisk.org/r/1852/ (closes issue ASTERISK-19462) ........ Merged revisions 361955 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 361956 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@361968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'build_tools')
-rw-r--r--build_tools/cflags.xml5
-rw-r--r--build_tools/menuselect-deps.in1
2 files changed, 6 insertions, 0 deletions
diff --git a/build_tools/cflags.xml b/build_tools/cflags.xml
index c8822013a..4396b4773 100644
--- a/build_tools/cflags.xml
+++ b/build_tools/cflags.xml
@@ -71,4 +71,9 @@
<member name="INTEGER_CALLERID" displayname="Use the (less accurate) integer-based method for decoding FSK tones (for embedded systems)">
<support_level>extended</support_level>
</member>
+ <member name="BUILD_NATIVE" displayname="Allow compiler to generate code optimized for the CPU on which the build is performed.">
+ <support_level>core</support_level>
+ <defaultenabled>yes</defaultenabled>
+ <depend>native_arch</depend>
+ </member>
</category>
diff --git a/build_tools/menuselect-deps.in b/build_tools/menuselect-deps.in
index b597ee9fe..866954371 100644
--- a/build_tools/menuselect-deps.in
+++ b/build_tools/menuselect-deps.in
@@ -66,3 +66,4 @@ VPB=@PBX_VPB@
WINARCH=@PBX_WINARCH@
ZLIB=@PBX_ZLIB@
TIMERFD=@PBX_TIMERFD@
+NATIVE_ARCH=@AST_NATIVE_ARCH@