diff --git a/codecs/gsm/Makefile b/codecs/gsm/Makefile
index 12a74f7f6fd121f9932efe140f2dfdda9c8da095..7be253e848ecde2495431aff679654ab530054d3 100644
--- a/codecs/gsm/Makefile
+++ b/codecs/gsm/Makefile
@@ -212,8 +212,8 @@ GSM_SOURCES =	$(SRC)/add.c		\
 # XXX Keep a space after each findstring argument
 # XXX should merge with GSM_OBJECTS
 ifeq (${OSARCH},Linux)
-ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc s390 ))
-ifeq (,$(findstring ${PROC} , arm ia64 ))
+ifeq (,$(findstring $(shell uname -m) , x86_64 amd64 ppc ppc64 alpha armv4l sparc64 parisc ))
+ifeq (,$(findstring ${PROC} , arm ia64 s390 ))
 GSM_SOURCES+= $(SRC)/k6opt.s
 endif
 endif