From 6c61ac9c7e694e3712e1ff4f337f5b41a29ce02e Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 19 Dec 2013 09:08:35 +0100 Subject: [PATCH] added APPEND_CFLAGS support --- uwsgiconfig.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 7cf455ea..58c9be8c 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -263,6 +263,9 @@ def build_uwsgi(uc, print_only=False, gcll=None): print(' '.join(cflags)) sys.exit(0) + if 'APPEND_CFLAGS' in os.environ: + cflags += os.environ['APPEND_CFLAGS'].split() + print("detected CPU cores: %d" % CPUCOUNT) print("configured CFLAGS: %s" % ' '.join(cflags))