--- a/uwsgiconfig.py 2012-01-11 19:38:58.000000000 +0100 +++ b/uwsgiconfig.py 2012-01-27 11:43:47.969407343 +0100 @@ -252,7 +252,7 @@ self.gcc_list.append('proto/fastcgi') self.include_path = [] - self.cflags = ['-O2', '-Wall', '-Werror', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split() + self.cflags = ['-O2', '-Wall', '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64'] + os.environ.get("CFLAGS", "").split() if uwsgi_os == 'Linux': self.gcc_list.append('lib/linux_ns')