From 8696daadf8c129d92c52b85d471fcacca9e50a85 Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Thu, 12 Apr 2012 15:25:47 +0000 Subject: 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 --- codecs/lpc10/Makefile | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'codecs/lpc10') diff --git a/codecs/lpc10/Makefile b/codecs/lpc10/Makefile index e7d52a9de..bdf1a3ad7 100644 --- a/codecs/lpc10/Makefile +++ b/codecs/lpc10/Makefile @@ -27,37 +27,6 @@ CFLAGS+= -fPIC -Wno-comment # fails miserably. Remove it for the time being. _ASTCFLAGS:=$(_ASTCFLAGS:-Werror=) -# If the compiler's '-march' flag has been specified already, then assume it's a value -# that is what the user wants (or has been determined by the configure script). If not, -# do some simple logic to set a decent value -ifeq ($(findstring -march,$(_ASTCFLAGS) $(ASTCFLAGS)),) - #fix for PPC processors and ALPHA, And UltraSparc too - ifneq ($(OSARCH),Darwin) - ifneq ($(findstring BSD,${OSARCH}),BSD) - ifneq ($(PROC),ppc) - ifneq ($(PROC),x86_64) - ifneq ($(PROC),alpha) - #The problem with sparc is the best stuff is in newer versions of gcc (post 3.0) only. - #This works for even old (2.96) versions of gcc and provides a small boost either way. - #A ultrasparc cpu is really v9 but the stock debian stable 3.0 gcc doesn.t support it. - #So we go lowest common available by gcc and go a step down, still a step up from - #the default as we now have a better instruction set to work with. - Belgarath - ifeq ($(PROC),ultrasparc) - CFLAGS+= -mtune=$(PROC) -mcpu=v8 -O3 -fomit-frame-pointer - else - ifneq ($(OSARCH),SunOS) - ifneq ($(OSARCH),arm) - # CFLAGS+= -march=$(PROC) - endif - endif - endif - endif - endif - endif - endif - endif -endif - LIB = $(LIB_TARGET_DIR)/liblpc10.a .PHONY: all clean -- cgit v1.2.3