diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2011-03-11 15:09:23 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2011-03-11 15:09:23 +0000 |
commit | 7cf70df99941b006f0117acd89e3eba139d00d6c (patch) | |
tree | b7253545524f3ee28717d20a1e3066a31f7f767d /makeopts.in | |
parent | c7c0664bc4554efd21d491e2d4e09c66c9a9bae1 (diff) |
Use "-march=native" when possible.
Recent versions of GCC have a tuning option value of 'native', which causes
the compiler to optimize the build for the CPU the compile is performed on.
Since most people are building Asterisk on the machine they plan to run it on,
the configure script and build system will now use this value unless a different
value is specified by the user in CFLAGS when the configure script is executed.
In addition, this value will be used for building the GSM and LPC10 codecs as
well, in preference to the logic that has been in their Makefiles forever to
optimize for certain types of CPUs.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@310332 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'makeopts.in')
-rw-r--r-- | makeopts.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/makeopts.in b/makeopts.in index 3cde8141d..c7a5eafc6 100644 --- a/makeopts.in +++ b/makeopts.in @@ -100,6 +100,7 @@ AST_DECLARATION_AFTER_STATEMENT=@AST_DECLARATION_AFTER_STATEMENT@ AST_NO_STRICT_OVERFLOW=@AST_NO_STRICT_OVERFLOW@ AST_SHADOW_WARNINGS=@AST_SHADOW_WARNINGS@ AST_FORTIFY_SOURCE=@AST_FORTIFY_SOURCE@ +AST_MARCH_NATIVE=@AST_MARCH_NATIVE@ ALSA_INCLUDE=@ALSA_INCLUDE@ ALSA_LIB=@ALSA_LIB@ |