[Asterisk-cvs] asterisk/cdr Makefile,1.25,1.26
markster at lists.digium.com
markster at lists.digium.com
Tue Aug 31 12:29:35 CDT 2004
Update of /usr/cvsroot/asterisk/cdr
In directory mongoose.digium.com:/tmp/cvs-serv32361/cdr
Modified Files:
Makefile
Log Message:
More Asterisk sparc patches (courtesy Belgarath)
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/cdr/Makefile,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- Makefile 25 Jul 2004 14:56:34 -0000 1.25
+++ Makefile 31 Aug 2004 16:33:00 -0000 1.26
@@ -17,11 +17,23 @@
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...
#
More information about the svn-commits
mailing list