From 4d4a7c00d7059211a2b10fbeca6d442fd58e8a77 Mon Sep 17 00:00:00 2001 From: markster Date: Tue, 31 Aug 2004 16:33:00 +0000 Subject: More Asterisk sparc patches (courtesy Belgarath) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3693 f38db490-d61c-443f-a65b-d21fe96a405b --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c92295748..2457ea8ac 100755 --- a/Makefile +++ b/Makefile @@ -27,8 +27,15 @@ PROC=k8 OPTIONS+=-m64 endif ifeq ($(PROC),sparc64) +#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 PROC=ultrasparc -CFLAGS+=$(shell if $(CC) -mtune=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mtune=$(PROC)"; fi) +OPTIONS+=$(shell if $(CC) -mtune=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mtune=$(PROC)"; fi) +OPTIONS+=$(shell if $(CC) -mcpu=v8 -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mcpu=v8"; fi) +OPTIONS+=-fomit-frame-pointer endif endif @@ -55,7 +62,7 @@ PWD=$(shell pwd) #K6OPT = -DK6OPT #Tell gcc to optimize the asterisk's code -OPTIMIZE=-O6 +OPTIMIZE+=-O6 #Include debug symbols in the executables (-g) and profiling info (-pg) DEBUG=-g #-pg -- cgit v1.2.3