diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-31 16:33:00 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-08-31 16:33:00 +0000 |
commit | 4d4a7c00d7059211a2b10fbeca6d442fd58e8a77 (patch) | |
tree | 84d97a2ef137a860bc9d7d4c32d01ec8f0dbd6b2 /cdr | |
parent | 28f0f8240e24ca71d123648b9078941eb3771be3 (diff) |
More Asterisk sparc patches (courtesy Belgarath)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3693 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr')
-rwxr-xr-x | cdr/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cdr/Makefile b/cdr/Makefile index d2ba09cac..5430f5c5f 100755 --- a/cdr/Makefile +++ b/cdr/Makefile @@ -17,11 +17,23 @@ MODS=cdr_csv.so cdr_manager.so CFLAGS+=-fPIC +PROC=$(shell uname -m) OSARCH=$(shell uname -s) + ifeq (${OSARCH},FreeBSD) SOLINK+=-L/usr/local/lib endif +#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),sparc64) +PROC=ultrasparc +CFLAGS += -mtune=$(PROC) -O3 -pipe -fomit-frame-pointer -mcpu=v8 +endif + # # unixODBC stuff... # |