diff options
Diffstat (limited to 'codecs')
-rwxr-xr-x | codecs/gsm/Makefile | 4 | ||||
-rwxr-xr-x | codecs/ilbc/Makefile | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/codecs/gsm/Makefile b/codecs/gsm/Makefile index effdbcbac..1cfa939e1 100755 --- a/codecs/gsm/Makefile +++ b/codecs/gsm/Makefile @@ -200,7 +200,7 @@ GSM_SOURCES = $(SRC)/add.c \ $(SRC)/short_term.c \ $(SRC)/table.c ifeq (${OSARCH},Linux) -ifneq (${PROC},x86_64) +ifneq ($(shell uname -m),x86_64) ifneq ($(shell uname -m),ppc) ifneq ($(shell uname -m),alpha) GSM_SOURCES+= $(SRC)/k6opt.s @@ -253,7 +253,7 @@ GSM_OBJECTS = $(SRC)/add.o \ $(SRC)/short_term.o \ $(SRC)/table.o ifeq (${OSARCH},Linux) -ifneq (${PROC},x86_64) +ifneq ($(shell uname -m), x86_64) ifneq ($(shell uname -m), ppc) ifneq ($(shell uname -m), alpha) GSM_OBJECTS+= $(SRC)/k6opt.o diff --git a/codecs/ilbc/Makefile b/codecs/ilbc/Makefile index dd2bbc3f2..12471d105 100755 --- a/codecs/ilbc/Makefile +++ b/codecs/ilbc/Makefile @@ -1,4 +1,5 @@ -CFLAGS+=-Wall -Werror -fPIC -O3 -march=$(shell uname -m) -funroll-loops -fomit-frame-pointer +ARCH=$(PROC) +CFLAGS+=-Wall -Werror -fPIC -O3 -march=$(ARCH) -funroll-loops -fomit-frame-pointer LIB=libilbc.a OBJS= anaFilter.o iCBSearch.o packing.o \ |