--- uwsgiconfig.py 2011-06-07 18:38:50.000000000 +0400 +++ uwsgiconfig.py 2011-06-05 10:28:03.000000000 +0400 @@ -176,7 +176,7 @@ if uwsgi_os == 'Linux': self.gcc_list.append('lib/linux_ns') self.gcc_list.append('lib/netlink') - 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() try: gcc_version = str(spcall("%s -dumpversion" % GCC)) except: