--- asterisk-1.0.9/codecs/lpc10/Makefile.orig 2005-09-08 00:29:27.000000000 +0200 +++ asterisk-1.0.9/codecs/lpc10/Makefile 2005-09-08 00:30:15.000000000 +0200 @@ -22,30 +22,7 @@ # WARNINGS = -Wall -Wno-comment -Wno-error -CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC -#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi) - -#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 - CFLAGS+= -march=$(PROC) -endif -endif -endif -endif -endif -endif +CFLAGS = $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC LIB = $(LIB_TARGET_DIR)/liblpc10.a