--- library/Makefile.orig	2011-07-13 13:25:36.000000000 +0200
+++ library/Makefile	2011-10-14 22:53:58.000000000 +0200
@@ -1,7 +1,7 @@
 
 # Also see "include/polarssl/config.h"
 
-CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
+CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W
 OFLAGS	= -O
 
 # MicroBlaze specific options:
--- programs/Makefile.orig	2011-10-14 22:54:37.000000000 +0200
+++ programs/Makefile	2011-10-14 22:54:50.000000000 +0200
@@ -3,7 +3,7 @@
 # To compile on MinGW: add "-lws2_32" to LDFLAGS
 # To compile with PKCS11: add "-lpkcs11-helper" to LDFLAGS
 
-CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W -Wdeclaration-after-statement
+CFLAGS	+= -I../include -D_FILE_OFFSET_BITS=64 -Wall -W
 OFLAGS	= -O
 LDFLAGS	+= -L../library -lpolarssl $(SYS_LDFLAGS)
 

Remove gcc -W option not supported on old versions.
Remove gcc -W option not supported on old versions.
