diff --git a/codecs/ilbc/Makefile b/codecs/ilbc/Makefile
index 16379771e875f60dbb599a000fef9acf8deb8e49..dd2bbc3f29e2070c0405b9f3bb8a1d54b65d071f 100755
--- a/codecs/ilbc/Makefile
+++ b/codecs/ilbc/Makefile
@@ -1,4 +1,4 @@
-CFLAGS+= -fPIC -O3
+CFLAGS+=-Wall -Werror -fPIC -O3 -march=$(shell uname -m) -funroll-loops -fomit-frame-pointer
 LIB=libilbc.a
 
 OBJS= anaFilter.o iCBSearch.o packing.o \