mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
More Asterisk sparc patches (courtesy Belgarath)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3693 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
12
cdr/Makefile
12
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...
|
||||
#
|
||||
|
Reference in New Issue
Block a user