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
Showing
- Makefile 10 additions, 4 deletionsMakefile
- codecs/gsm/Makefile 23 additions, 18 deletionscodecs/gsm/Makefile
- codecs/lpc10/Makefile 23 additions, 18 deletionscodecs/lpc10/Makefile
- configure 424 additions, 491 deletionsconfigure
- configure.ac 10 additions, 0 deletionsconfigure.ac
- makeopts.in 1 addition, 0 deletionsmakeopts.in
Loading
Please register or sign in to comment