--- uwsgiconfig.pyold 2011-06-05 13:47:50.000000000 +0400 +++ uwsgiconfig.py 2011-06-05 13:47:57.000000000 +0400 @@ -160,7 +160,7 @@ 'plugins', 'lock', 'cache', 'queue', 'event', 'signal', 'rpc', 'gateway', 'loop', 'lib/rbtree', 'lib/amqp', 'rb_timers', 'uwsgi'] #if uwsgi_os == 'Linux': # 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: